forked from WarwickMicroscopy/Felix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
28 lines (24 loc) · 1.18 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
general:
build_dir: src
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install libcr-dev mpich2 mpich2-doc
- sudo apt-get install libfftw3-dev libfftw3-doc
checkout:
post:
- echo $CIRCLE_SHA1 $CIRCLE_BRANCH $CIRCLE_BUILD_NUM $CIRCLE_USERNAME
- ../scripts/build.sh $CIRCLE_SHA1 $CIRCLE_BRANCH $CIRCLE_BUILD_NUM $CIRCLE_USERNAME
- head -32 ../felix-$CIRCLE_SHA1/felix/felixrefine.f90
compile:
override:
- cd ../felix-${CIRCLE_SHA1}/;pwd;make clean; make
- make clean; pwd; ls -al
test:
pre:
- cd ../samples/GaAs_short; ../../felix-$CIRCLE_SHA1/felix.INT64NGNU.d | tee terminal_log.txt
- cd ../samples/SrTiO3_short; ../../felix-$CIRCLE_SHA1/felix.INT64NGNU.d | tee terminal_log.txt
post:
- diff -W132 -s ../samples/GaAs_short/GaAs_I0000_085nm_070x070/GaAs_085nm_070x070_+0+0+0.bin ../samples/GaAs_short/sample_outputs/GaAs_I0000_085nm_070x070/GaAs_085nm_070x070_+0+0+0.bin || true
- diff -W132 -y -s ../samples/GaAs_short/iteration_log.txt ../samples/GaAs_short/sample_outputs/iteration_log.txt || true
- diff -W132 -y -s ../samples/GaAs_short/terminal_log.txt ../samples/GaAs_short/sample_outputs/terminal_log.txt || true