forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (22 loc) · 807 Bytes
/
.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
dist: xenial
language: c++
sudo: true
env:
matrix:
- WARPX_TEST_DIM=3
- WARPX_TEST_DIM=2
before_install:
- sudo apt-get update
- sudo apt-get install -y gcc gfortran g++ openmpi-bin libopenmpi-dev libfftw3-dev libfftw3-mpi-dev
# Install miniconda and python dependencies
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
- bash Miniconda3-latest-Linux-x86_64.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- pip install --upgrade pip && pip install numpy scipy matplotlib yt mpi4py
script:
- export FFTW_HOME=/usr/
- export OMP_NUM_THREADS=1
# Run the tests on the current commit
- export WARPX_TEST_COMMIT=$TRAVIS_COMMIT
# Run the script that prepares the test environment and runs the tests
- ./run_test.sh