diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..1f6f032236c1a3084ea29b26b87d892d0d52eb8d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,43 @@ + +stages: + - test + - build_src + - build_pkg + - upload + +test: + stage: test + image: "ai/test:go" + script: "go-test-runner ." + +build:src: + stage: build_src + image: "ai/build:stretch" + script: "build-dsc" + artifacts: + paths: + - build-deb/ + only: + - master + +build:pkg: + stage: build_pkg + image: "ai/build:stretch" + script: "build-deb" + dependencies: + - build:src + artifacts: + paths: + - output-deb/ + only: + - master + +upload:pkg: + stage: upload + image: "ai/pkg:base" + script: "upload-packages -r stretch-ai/ai3" + dependencies: + - build:pkg + only: + - master +