From 1767642cb197ff7740770c47dec5a7edda7478e1 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 16 Oct 2016 22:35:55 +0100 Subject: [PATCH] ci: initial config --- .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a1700bf --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +stages: + - test + - build_src + - build_pkg + - upload + +run_tests: + stage: test + image: "ai/test:base" + script: + - "apt-get install -q -y autoconf automake libtool libcurl4-openssl-dev libpam0g-dev" + - "(cd pam && ./configure && make)" + - "tox -e py27" + +build:src: + stage: build_src + image: "ai/build:base" + script: "build-dsc" + artifacts: + paths: + - build-deb/ + +build:pkg: + stage: build_pkg + image: "ai/build:base" + script: "build-deb" + dependencies: + - build:src + artifacts: + paths: + - output-deb/ + +upload:pkg: + stage: upload + image: "ai/pkg:base" + script: "upload-packages" + dependencies: + - build:pkg + -- GitLab