forked from ReproNim/simple_workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
34 lines (29 loc) · 1.15 KB
/
circle.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
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker"
- "~/.apt-cache"
pre:
- mkdir -p $HOME/docker
override:
- if [[ -e "$HOME/docker/cache.tar" ]]; then docker load --input $HOME/docker/cache.tar; fi
- docker images
- ./Simple_Prep_docker jessie 20170410T000000Z && repronimtag=repronim:$(docker images repronim | tail -n 1 | awk '{print $2}') && (echo "export repronimtag=$repronimtag" >> ~/.circlerc) :
timeout: 1000
- echo $repronimtag
- docker save -o $HOME/docker/cache.tar $repronimtag
test:
override:
- echo $repronimtag
- docker run -it --rm -v $HOME/output:/opt/repronim/simple_workflow/scripts/output $repronimtag run_demo_workflow.py --key 11an55u9t2TAf0EV2pHN0vOd8Ww2Gie-tHp9xGULh_dA -n 2 :
timeout: 3000
- docker run -it --rm -v $HOME/output:/opt/repronim/simple_workflow/scripts/output $repronimtag check_output.py --ignoremissing | tee ~/log.txt
- cat ~/log.txt && if grep -q "MATCH" ~/log.txt; then true; else false; fi
general:
artifacts:
- "~/log.txt"
- "~/output/ActualOutput.csv"
- "~/output/Difference.csv"
- "~/output/ExpectedOutput.csv"