.gitlab-ci.yml 2.59 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
7

eric pellegrini's avatar
eric pellegrini committed
8
9
10
11
12
build:trusty:
  stage: build
  script:
    - ./BuildServer/Debian/run_build.sh
  allow_failure: false
13
  only:
Jamie Hall's avatar
Jamie Hall committed
14
15
    - triggers
    - tags
16
    - /^feature-.*$/
Jamie Hall's avatar
Jamie Hall committed
17
    - /^release-.*$/
Jamie Hall's avatar
Jamie Hall committed
18
    - /^hotfix-.*$/
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-.*$/
Jamie Hall's avatar
Jamie Hall committed
38
    - develop
Jamie Hall's avatar
Jamie Hall committed
39
40
41
42
  dependencies:
    - build:trusty
  tags:
    - ubuntu14.04
43

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

# osx pipeline

eric pellegrini's avatar
eric pellegrini committed
61
62
63
64
65
66
67
68
69
70
#build:osx:
#  stage: build
#  script:
#    - ./BuildServer/Darwin/Scripts/run_build.sh
#  allow_failure: false
#  artifacts:
#    paths:
#    - build
#  tags:
#    - mac
71

eric pellegrini's avatar
eric pellegrini committed
72
73
74
75
76
77
78
79
80
#test:osx:
#  stage: test
#  script:
#    - ./BuildServer/Darwin/Scripts/run_tests.sh
#  allow_failure: false
#  tags:
#    - mac
#  dependencies:
#    - build:osx
81

eric pellegrini's avatar
eric pellegrini committed
82
83
84
85
86
87
88
89
90
91
92
93
94
#deploy:osx:
#  stage: deploy
#  script:
#    - ./BuildServer/Darwin/Scripts/run_deploy.sh
#  only:
#    - master
#    - develop
#  when: on_success
#  artifacts:
#    paths:
#      - BuildServer/Darwin/Build/*.dmg
#  tags:
#    - mac
95
96
97

# # windows 7 pipeline

eric pellegrini's avatar
eric pellegrini committed
98
99
100
101
102
103
104
105
106
107
108
109
#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
#  artifacts:
#    paths:
#    - .\BuildServer\Windows\Build
#  tags:
#    - windows
110

eric pellegrini's avatar
eric pellegrini committed
111
112
113
114
115
116
117
118
119
120
121
#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
#  tags:
#    - windows
#  dependencies:
#    - build:windows
122

eric pellegrini's avatar
eric pellegrini committed
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#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:
#    - master
#    - develop
#  when: on_success
#  artifacts:
#    paths:
#      - BuildServer/Windows/Build/MDANSE*.exe
#  tags:
#    - windows
138