.gitlab-ci.yml 906 Bytes
Newer Older
ale's avatar
ale committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
stages:
  - test
  - build_src
  - build_pkg
  - upload

run_tests:
  stage: test
  image: "ai/test:base"
  script:
    - "apt-get install -q -y autoconf automake libtool pkg-config apache2-threaded-dev apache2-mpm-worker swig libpam0g-dev python-dev python-setuptools python-mox python-flask python-flup python-werkzeug python-nose python-m2crypto python-beautifulsoup"
    - "./autogen.sh && ./configure --enable-pam-sso --enable-mod-sso && make check"

build:src:
  stage: build_src
  image: "ai/build:base"
  script: "build-dsc"
  artifacts:
    paths:
      - build-deb/
21 22
  only:
    - master
ale's avatar
ale committed
23 24 25 26 27 28 29 30 31 32

build:pkg:
  stage: build_pkg
  image: "ai/build:base"
  script: "build-deb"
  dependencies:
    - build:src
  artifacts:
    paths:
      - output-deb/
33 34
  only:
    - master
ale's avatar
ale committed
35 36 37 38 39 40 41

upload:pkg:
  stage: upload
  image: "ai/pkg:base"
  script: "upload-packages"
  dependencies:
    - build:pkg
42 43
  only:
    - master
ale's avatar
ale committed
44