.gitlab-ci.yml 3.14 KB
Newer Older
Jamie Hall's avatar
Jamie Hall committed
1
2
stages:
  - build
3
4
  - test
  - deploy
Jamie Hall's avatar
Jamie Hall committed
5
 
6
# trusty pipeline
eric pellegrini's avatar
eric pellegrini committed
7
8
9
10
11
build:trusty:
  stage: build
  script:
    - ./BuildServer/Debian/run_build.sh
  allow_failure: false
12
  only:
Jamie Hall's avatar
Jamie Hall committed
13
14
    - triggers
    - tags
15
    - /^feature-.*$/
Jamie Hall's avatar
Jamie Hall committed
16
    - /^release-.*$/
Jamie Hall's avatar
Jamie Hall committed
17
    - /^hotfix-.*$/
18
    - /^bugfix-.*$/
Jamie Hall's avatar
Jamie Hall committed
19
    - develop
eric pellegrini's avatar
eric pellegrini committed
20
21
22
  artifacts:
    paths:
    - build
eric pellegrini's avatar
eric pellegrini committed
23
    expire_in: 1 day
eric pellegrini's avatar
eric pellegrini committed
24
25
  tags:
    - ubuntu14.04
26

Jamie Hall's avatar
Jamie Hall committed
27
28
29
30
31
32
33
34
35
36
37
test:trusty:
  stage: test
  script:
    - ./BuildServer/Debian/run_tests.sh
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
38
    - /^bugfix-.*$/
Jamie Hall's avatar
Jamie Hall committed
39
    - develop
Jamie Hall's avatar
Jamie Hall committed
40
41
42
43
  dependencies:
    - build:trusty
  tags:
    - ubuntu14.04
44

Jamie Hall's avatar
Jamie Hall committed
45
46
47
48
49
deploy:trusty:
  stage: deploy
  script:
    - ./BuildServer/Debian/run_deploy.sh amd64 trusty
  only:
Jamie Hall's avatar
Jamie Hall committed
50
    - triggers
eric pellegrini's avatar
eric pellegrini committed
51
    - tags
Jamie Hall's avatar
Jamie Hall committed
52
    - develop
Jamie Hall's avatar
Jamie Hall committed
53
54
55
56
57
58
  when: on_success
  artifacts:
    paths:
    - ./BuildServer/Debian/Build/*.deb
  tags:
    - ubuntu14.04
59
60
61

# osx pipeline

eric pellegrini's avatar
eric pellegrini committed
62
63
64
65
66
67
68
69
70
71
72
build:osx:
  stage: build
  script:
    - ./BuildServer/Darwin/Scripts/run_build.sh
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
73
    - /^bugfix-.*$/
eric pellegrini's avatar
eric pellegrini committed
74
75
76
77
78
79
80
    - develop
  artifacts:
    paths:
    - build
    expire_in: 1 day
  tags:
    - mac
81

eric pellegrini's avatar
eric pellegrini committed
82
83
84
85
86
87
88
89
90
91
92
test:osx:
  stage: test
  script:
    - ./BuildServer/Darwin/Scripts/run_tests.sh
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
93
    - /^bugfix-.*$/
eric pellegrini's avatar
eric pellegrini committed
94
95
96
97
98
    - develop
  dependencies:
    - build:osx
  tags:
    - mac
99

eric pellegrini's avatar
eric pellegrini committed
100
101
102
103
104
105
106
107
108
109
110
111
112
113
deploy:osx:
  stage: deploy
  script:
    - ./BuildServer/Darwin/Scripts/run_deploy.sh
  only:
    - triggers
    - tags
    - develop
  when: on_success
  artifacts:
    paths:
     - BuildServer/Darwin/Build/*.dmg
  tags:
    - mac
114
115
116

# # windows 7 pipeline

eric pellegrini's avatar
eric pellegrini committed
117
118
119
120
121
122
123
124
125
126
127
128
129
build:windows:
  stage: build
  script:
    - c:\cygwin64\bin\bash -c "dos2unix.exe ./BuildServer/Windows/run_build.sh"
    - c:\cygwin64\bin\bash -c "chmod a+x ./BuildServer/Windows/run_build.sh"
    - c:\cygwin64\bin\bash -c "./BuildServer/Windows/run_build.sh"
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
130
    - /^bugfix-.*$/
eric pellegrini's avatar
eric pellegrini committed
131
132
133
134
135
136
137
    - develop
  artifacts:
    paths:
    - .\BuildServer\Windows\Build
    expire_in: 1 day
  tags:
    - windows
138

eric pellegrini's avatar
eric pellegrini committed
139
140
141
142
143
144
145
146
147
148
149
150
151
test:windows:
  stage: test
  script:
    - c:\cygwin64\bin\bash -c "dos2unix.exe ./BuildServer/Windows/run_tests.sh"
    - c:\cygwin64\bin\bash -c "chmod a+x ./BuildServer/Windows/run_tests.sh"
    - c:\cygwin64\bin\bash -c "./BuildServer/Windows/run_tests.sh"
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
152
    - /^bugfix-.*$/
eric pellegrini's avatar
eric pellegrini committed
153
154
155
156
157
    - develop
  dependencies:
    - build:windows
  tags:
    - windows
158

eric pellegrini's avatar
eric pellegrini committed
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
deploy:windows:
  stage: deploy
  script:
    - c:\cygwin64\bin\bash -c "dos2unix.exe ./BuildServer/Windows/run_deploy.sh"
    - c:\cygwin64\bin\bash -c "chmod a+x ./BuildServer/Windows/run_deploy.sh"
    - c:\cygwin64\bin\bash -c "./BuildServer/Windows/run_deploy.sh"
  only:
    - triggers
    - tags
    - develop
  when: on_success
  artifacts:
    paths:
     - BuildServer/Windows/Build/MDANSE*.exe
  tags:
    - windows
175