.gitlab-ci.yml 2.45 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:
14
    - /^feature-.*$/
eric pellegrini's avatar
eric pellegrini committed
15
16
17
18
19
  artifacts:
    paths:
    - build
  tags:
    - ubuntu14.04
20

Jamie Hall's avatar
Jamie Hall committed
21
22
23
24
25
26
27
28
29
30
31
32
# test:trusty:
#   stage: test
#   script:
#     - ./BuildServer/Debian/run_tests.sh
#   allow_failure: false
#   only:
#     - tags
#     - develop
#   dependencies:
#     - build:trusty
#   tags:
#     - ubuntu14.04
33

Jamie Hall's avatar
Jamie Hall committed
34
35
36
37
38
39
40
41
42
43
44
45
46
# deploy:trusty:
#   stage: deploy
#   script:
#     - ./BuildServer/Debian/run_deploy.sh amd64 trusty
#   only:
#     - tags
#     - develop
#   when: on_success
#   artifacts:
#     paths:
#     - ./BuildServer/Debian/Build/*.deb
#   tags:
#     - ubuntu14.04
47
48
49

# osx pipeline

eric pellegrini's avatar
eric pellegrini committed
50
51
52
53
54
55
56
57
58
59
#build:osx:
#  stage: build
#  script:
#    - ./BuildServer/Darwin/Scripts/run_build.sh
#  allow_failure: false
#  artifacts:
#    paths:
#    - build
#  tags:
#    - mac
60

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

eric pellegrini's avatar
eric pellegrini committed
71
72
73
74
75
76
77
78
79
80
81
82
83
#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
84
85
86

# # windows 7 pipeline

eric pellegrini's avatar
eric pellegrini committed
87
88
89
90
91
92
93
94
95
96
97
98
#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
99

eric pellegrini's avatar
eric pellegrini committed
100
101
102
103
104
105
106
107
108
109
110
#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
111

eric pellegrini's avatar
eric pellegrini committed
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#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
127