aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 3ee3605aaa4d45c77f74bd8fd35cf4eeda2bb727 (plain) (blame)
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/Miniconda-latest-Linux-x86_64.sh
    - bash Miniconda-latest-Linux-x86_64.sh -b
    - export PATH=/home/travis/miniconda2/bin:$PATH
    - pip install --upgrade pip && pip install numpy scipy matplotlib yt

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