.gitlab-ci.yml 2.49 KB
Newer Older
Jamie Hall's avatar
Jamie Hall committed
1
stages:
2
  - ci
3
  - deploy
Jamie Hall's avatar
Jamie Hall committed
4
 
5
# trusty pipeline
6
7
ci:trusty:
  stage: ci
eric pellegrini's avatar
eric pellegrini committed
8
9
  script:
    - ./BuildServer/Debian/run_build.sh
10
    - ./BuildServer/Debian/run_tests.sh
eric pellegrini's avatar
eric pellegrini committed
11
  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
deploy:trusty:
  stage: deploy
  script:
    - ./BuildServer/Debian/run_deploy.sh amd64 trusty
  only:
Jamie Hall's avatar
Jamie Hall committed
32
    - triggers
eric pellegrini's avatar
eric pellegrini committed
33
    - tags
Jamie Hall's avatar
Jamie Hall committed
34
    - develop
35
36
  dependencies:
    - ci:trusty
Jamie Hall's avatar
Jamie Hall committed
37
38
39
40
41
42
  when: on_success
  artifacts:
    paths:
    - ./BuildServer/Debian/Build/*.deb
  tags:
    - ubuntu14.04
43
44
45

# osx pipeline

46
47
ci:osx:
  stage: ci
eric pellegrini's avatar
eric pellegrini committed
48
49
  script:
    - ./BuildServer/Darwin/Scripts/run_build.sh
50
    - ./BuildServer/Darwin/Scripts/run_tests.sh
eric pellegrini's avatar
eric pellegrini committed
51
52
53
54
55
56
57
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
58
    - /^bugfix-.*$/
eric pellegrini's avatar
eric pellegrini committed
59
60
61
62
63
64
    - develop
  artifacts:
    paths:
    - build
    expire_in: 1 day
  tags:
65
    - macmini2
66

eric pellegrini's avatar
eric pellegrini committed
67
68
69
70
71
72
73
74
deploy:osx:
  stage: deploy
  script:
    - ./BuildServer/Darwin/Scripts/run_deploy.sh
  only:
    - triggers
    - tags
    - develop
75
76
  dependencies:
    - ci:osx
eric pellegrini's avatar
eric pellegrini committed
77
78
79
80
81
  when: on_success
  artifacts:
    paths:
     - BuildServer/Darwin/Build/*.dmg
  tags:
82
    - macmini2
83

84
# windows 7 pipeline
85

86
87
ci:windows:
  stage: ci
eric pellegrini's avatar
eric pellegrini committed
88
89
90
91
  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"
92
93
94
    - 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"
eric pellegrini's avatar
eric pellegrini committed
95
96
97
98
99
100
101
  allow_failure: false
  only:
    - triggers
    - tags
    - /^feature-.*$/
    - /^release-.*$/
    - /^hotfix-.*$/
102
    - /^bugfix-.*$/
eric pellegrini's avatar
eric pellegrini committed
103
104
105
106
107
108
109
    - develop
  artifacts:
    paths:
    - .\BuildServer\Windows\Build
    expire_in: 1 day
  tags:
    - windows
110

eric pellegrini's avatar
eric pellegrini committed
111
112
113
114
115
116
117
118
119
120
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
121
122
  dependencies:
    - ci:windows
eric pellegrini's avatar
eric pellegrini committed
123
124
125
126
127
128
  when: on_success
  artifacts:
    paths:
     - BuildServer/Windows/Build/MDANSE*.exe
  tags:
    - windows
129