forked from MiniZinc/libminizinc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
98 lines (90 loc) · 1.71 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
stages:
- build
- test
build:osx:
stage: build
script:
- mkdir build
- cd build
- cmake -GXcode ..
- cmake --build . --config Debug
- cp Debug/mzn2fzn Debug/mzn-fzn Debug/solns2out ../
artifacts:
paths:
- mzn2fzn
- mzn-fzn
- solns2out
expire_in: 2h
only:
- develop
tags:
- mac
build:linux:
image: guidotack/build-minizinc:1.0
stage: build
script:
- mkdir build
- cd build
- cmake ..
- cmake --build .
- cp mzn2fzn mzn-fzn solns2out ../
artifacts:
paths:
- mzn2fzn
- mzn-fzn
- solns2out
expire_in: 2h
only:
- develop
tags:
- linux
test:mzn20_fd:osx:
stage: test
script:
- cd tests
- export PATH="$(pwd)/..":"$(pwd)/scripts":"$PATH"
- bash run-tests mzn20_fd .mzn unit examples
dependencies:
- build:osx
only:
- develop
tags:
- mac
test:mzn-fzn_fd:osx:
stage: test
script:
- cd tests
- export PATH="$(pwd)/..":"$(pwd)/scripts":"$PATH"
- bash run-tests mzn-fzn_fd .mzn unit examples
dependencies:
- build:osx
only:
- develop
tags:
- mac
test:mzn20_fd:linux:
image: guidotack/build-minizinc:1.0
stage: test
script:
- cd tests
- export PATH="$(pwd)/..":"$(pwd)/scripts":"$PATH"
- bash run-tests mzn20_fd .mzn unit examples
dependencies:
- build:linux
only:
- develop
tags:
- linux
test:mzn-fzn_fd:linux:
image: guidotack/build-minizinc:1.0
stage: test
script:
- cd tests
- export PATH="$(pwd)/..":"$(pwd)/scripts":"$PATH"
- bash run-tests mzn-fzn_fd .mzn unit examples
dependencies:
- build:linux
only:
- develop
tags:
- linux