-
Notifications
You must be signed in to change notification settings - Fork 17
/
shippable.yml
76 lines (71 loc) · 2.56 KB
/
shippable.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
build:
pre_ci_boot:
image_name: rlehe/warp
image_tag: latest
pull: true
ci:
# Install dependencies
- export LC_ALL=C
- pip install matplotlib pytest
# Install FFTW3
- sudo apt-get update && sudo apt-get install -y libfftw3-dev libfftw3-mpi-dev
# Get the latest version of warp
- cd /home/warp_user/warp/pywarp90 && git pull && make install && make pinstall
#QED LIBRARY
- cd /home/warp_user/src/bitbucket.org/berkeleylab/picsar/multi_physics/QED
- mkdir build
- cd build
- cmake ../. -DWITH_KOKKOS=OFF
- make
- make test
#END QED LIBRARY
# Compile the unit tests
- cd /home/warp_user/src/bitbucket.org/berkeleylab/picsar/
- make build_test
# Run tests on particle routines
- make test_gcov
# Compile Picsar with fftw
- make clean
- sed -i 's/MODE=prod/MODE=prod_spectral/g' Makefile
- make
# Compile and run tests on Maxwell solver (plane wave test)
- make clean
- make build_test_spectral_3d
- make test_maxwell_solver_3d
- make clean
#fix issue with MPI tasks number > number of cores & run as root
- sed -i 's/mpirun -np/mpirun -host localhost:8 -np/g' Makefile
- make build_test_spectral_2d
- make test_maxwell_solver_2d
# Compile Picsar as library
- make clean
- sed -i 's/MODE=prod_spectral/MODE=library/g' Makefile
- make lib
# Add Picsar Dynamic library to LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=/path_to_libpxr.iso:$LD_LIBRARY_PATH
# Compile the Fortran kernel of Picsar
- sed -i 's/MODE=library/MODE=prod/g' Makefile
- make clean
- make
# Add path to pythonpath
- export PYTHONPATH="/home/warp_user/src/bitbucket.org/berkeleylab/picsar/utils/postprocessing:$PYTHONPATH"
# Run the tests for Picsar Fortran
- cd Acceptance_testing/Fortran_tests/test_plasma_drift
- py.test -s --ttest=1 --trun=1 --tshow=0
- cd ../test_homogeneous_plasma
- py.test -s --ttest=1 --trun=1 --tshow=0
# this last test is very slow on docker and shippable for an unknown reason
- cd ../test_Langmuir_wave
- py.test -s --ttest=1 --trun=1 --tshow=0
# Compile Picsar for Python
- cd ../../..
- python configure
- make -f Makefile_Forthon
- cd python_module && python setup.py install && cd ../
# Run tests for python
- cd Acceptance_testing/Python_tests/test_Langmuir_wave
- cp -p ../../../examples/example_scripts_python/test_Langmuir_wave_3d.py .
- export OMP_NUM_THREADS=2
- python test_Langmuir_wave_3d.py
- cd ../test_radiation_reaction
- py.test