-
Notifications
You must be signed in to change notification settings - Fork 84
/
config.yml
190 lines (185 loc) · 5.79 KB
/
config.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
version: 2
jobs:
test_ubuntu_rolling_python3:
docker:
- image: ubuntu:rolling
environment:
CC: gcc
working_directory: ~/coco
steps:
- checkout
- run:
name: Update apt-get
command: apt-get update -qy
- run:
name: Install python-dev with apt-get
command: apt-get install -y python3-dev
- run:
name: Install pip with apt-get
command: apt-get install -y python3-pip
- run:
name: Install build-essential with apt-get
command: apt-get install -y build-essential
- run:
name: Install git with apt-get
command: apt-get install -y git
# - run:
# name: Install tkinter with apt-get
# command: apt-get install -y python3-tk
- run:
name: Install python packages with pip
command: pip3 install --upgrade matplotlib numpy setuptools \
six scipy pytest cython
- run:
name: Create symbolic link to python binaries
command: ln -s /usr/bin/python3 /usr/bin/python
- run:
name: Install coco python
command: python3 do.py run-python
- run:
name: Install coco post-processing
command: python3 do.py install-postprocessing
- run:
name: Run the example experiment
command: |
cd ~/coco/code-experiments/build/python
python3 example_experiment.py bbob
- run:
name: Post-process the results
command: |
cd ~/coco/code-experiments/build/python
python3 -m cocopp -o ./postproc ./exdata
- run:
name: Run coco Python 3 tests
command: python3 do.py test-python
no_output_timeout: 1800
- run:
name: Install mlocate
command: |
apt-get install -y mlocate
updatedb
- run:
name: Install octave for octave tests
command: |
apt-get install -y liboctave-dev
updatedb
- run:
name: Run coco octave tests
command: python3 do.py test-octave
no_output_timeout: 1800
- run:
name: Install jdk for java tests
command: |
apt-get install -y openjdk-8-jdk
updatedb
- run:
name: Run coco octave tests
command: python3 do.py test-java
no_output_timeout: 1800
- run:
name: Run coco pre-processing tests
command: python3 do.py test-preprocessing
no_output_timeout: 1800
- run:
name: Run coco post-processing tests
command: python3 do.py test-postprocessing
no_output_timeout: 5400
- run:
name: Run coco C
command: python do.py run-c
- run:
name: Run coco C tests
command: python do.py test-c
no_output_timeout: 1800
test_ubuntu_latest_python2:
docker:
- image: ubuntu:latest
environment:
CC: gcc
working_directory: ~/coco
steps:
- checkout
- run:
name: Update apt-get
command: apt-get update -qy
- run:
name: Install mlocate (updatedb)
command: apt-get install mlocate
- run:
name: Install python-dev with apt-get
command: apt-get install -y python-dev
- run:
name: Install pip with apt-get
command: apt-get install -y python-pip
- run:
name: Install build-essential with apt-get
command: apt-get install -y build-essential
- run:
name: Install git with apt-get
command: apt-get install -y git
# - run:
# name: Install tkinter with apt-get
# command: apt-get install -y python-tk
- run:
name: Install python packages with pip
command: pip install --upgrade matplotlib numpy setuptools \
six scipy pytest cython
- run:
name: Install coco python
command: python do.py run-python
- run:
name: Install coco post-processing
command: python do.py install-postprocessing
- run:
name: Run the example experiment
command: |
cd ~/coco/code-experiments/build/python
python example_experiment.py bbob
- run:
name: Post-process the results
command: |
cd ~/coco/code-experiments/build/python
python -m cocopp -o ./postproc ./exdata
- run:
name: Run coco Python 2 tests
command: python do.py test-python
no_output_timeout: 1800
- run:
name: Install octave for octave tests
command: |
apt-get install -y liboctave-dev
updatedb
- run:
name: Run coco octave tests
command: python do.py test-octave
no_output_timeout: 1800
- run:
name: Install jdk for java tests
command: |
apt-get install -y openjdk-8-jdk
updatedb
- run:
name: Run coco java tests
command: python do.py test-java
no_output_timeout: 1800
- run:
name: Run coco pre-processing tests
command: python do.py test-preprocessing
no_output_timeout: 1800
- run:
name: Run coco post-processing tests
command: python do.py test-postprocessing
no_output_timeout: 5400
- run:
name: Run coco C
command: python do.py run-c
- run:
name: Run coco C tests
command: python do.py test-c
no_output_timeout: 1800
workflows:
version: 2
test-matrix:
jobs:
- test_ubuntu_rolling_python3
- test_ubuntu_latest_python2