.gitlab-ci.yml 1.56 KB
Newer Older
ale's avatar
ale committed
1
2
3
4
5
6
7
8
9
10
stages:
  - test
  - build_src
  - build_pkg
  - upload

run_tests:
  stage: test
  image: "ai/test:base"
  script:
ale's avatar
ale committed
11
    - "apt-get install -q -y autoconf automake libtool pkg-config apache2-dev apache2 swig libpam0g-dev python-dev python-setuptools python-mox python-flask python-flup python-werkzeug python-nose python-m2crypto python-beautifulsoup"
ale's avatar
ale committed
12
13
14
15
16
17
18
19
20
    - "./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

ale's avatar
ale committed
24
25
26
27
28
29
30
31
32
build:src-stretch:
  stage: build_src
  image: "ai/build:stretch"
  script: "build-dsc"
  artifacts:
    paths:
      - build-deb/
  only:
    - master
ale's avatar
ale committed
33
    - nonce
ale's avatar
ale committed
34

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

ale's avatar
ale committed
47
48
49
50
51
52
53
54
55
56
57
build:pkg-stretch:
  stage: build_pkg
  image: "ai/build:stretch"
  script: "build-deb"
  dependencies:
    - build:src-stretch
  artifacts:
    paths:
      - output-deb/
  only:
    - master
ale's avatar
ale committed
58
    - nonce
ale's avatar
ale committed
59

ale's avatar
ale committed
60
61
62
63
64
65
upload:pkg:
  stage: upload
  image: "ai/pkg:base"
  script: "upload-packages"
  dependencies:
    - build:pkg
66
67
  only:
    - master
ale's avatar
ale committed
68

ale's avatar
ale committed
69
70
71
72
73
74
75
76
77
upload:pkg-stretch:
  stage: upload
  image: "ai/pkg:base"
  script: "upload-packages --repository=stretch-ai"
  dependencies:
    - build:pkg-stretch
  only:
    - master

ale's avatar
ale committed
78
79
80
81
82
83
84
85
86
upload:pkg-nonce:
  stage: upload
  image: "ai/pkg:base"
  script: "upload-packages --repository=ai3"
  dependencies:
    - build:pkg-stretch
  only:
    - nonce