-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
29 lines (29 loc) · 1.54 KB
/
.travis.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
sudo: required
language: cpp
services:
- docker
before_install:
- openssl aes-256-cbc -K $encrypted_9a59b02794aa_key -iv $encrypted_9a59b02794aa_iv
-in clone_data_id.enc -out clone_data_id -d
- eval `ssh-agent -s`
- chmod 700 clone_data_id
- ssh-add clone_data_id
- rm clone_data_id
- ssh-keyscan "redmine.laas.fr" >> ~/.ssh/known_hosts
- git clone ssh://[email protected]/laas/users/simon/fire-rs/fire-rs-data.git data/ &>/dev/null
- docker pull rafael1193/fire-rs-saop
- docker run -d -it --user=${USER_ID}:${GROUP_ID} --name saop -v `pwd`:/home/saop/code:z
-v `pwd`/data:/home/saop/data:z rafael1193/fire-rs-saop
- docker exec --user=${USER_ID}:${GROUP_ID} saop /bin/sh -c "mkdir build-debug &&
cd build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j4"
script:
- docker exec --user=${USER_ID}:${GROUP_ID} saop /bin/bash -c
"python3 python/fire_rs/planning/benchmark.py create default ./test_scenario --n-instances 4"
- docker exec --user=${USER_ID}:${GROUP_ID} saop /bin/bash -c
"python3 python/fire_rs/planning/benchmark.py run ./test_scenario --elevation=flat --instance=0"
- docker exec --user=${USER_ID}:${GROUP_ID} saop /bin/bash -c
"python3 python/fire_rs/planning/benchmark.py run ./test_scenario --elevation=flat --instance=1"
- docker exec --user=${USER_ID}:${GROUP_ID} saop /bin/bash -c
"python3 python/fire_rs/planning/benchmark.py run ./test_scenario --elevation=flat --instance=2"
- docker exec --user=${USER_ID}:${GROUP_ID} saop /bin/bash -c
"python3 python/fire_rs/planning/benchmark.py run ./test_scenario --elevation=flat --instance=3"