forked from Nek5000/Nek5000
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (48 loc) · 3.09 KB
/
.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
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
language: fortran
sudo: required
env:
matrix:
- TEST_CASE=Eddy_EddyUv::test_PnPn_Serial IFMPI=false F77=gfortran CC=gcc IFCVODE=false
- TEST_CASE=Eddy_EddyUv::test_PnPn2_Serial IFMPI=false F77=gfortran CC=gcc IFCVODE=false
- TEST_CASE=Axi::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Axi::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Benard_Ray9::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Benard_Ray9::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Eddy_EddyUv::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Eddy_LegacySize::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Eddy_Rich::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Ethier::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Ethier::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=KovStState::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=LowMachTest::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=ConjHt::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc PPLIST="$PPLIST CVODE" IFCVODE=true
# - TEST_CASE=ConjHt::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc PPLIST="$PPLIST CVODE"
# - TEST_CASE=VarVis::test_PnPn_Serial IFMPI=true F77=mpif77 CC=mpicc # Stdout exceeds Travis' max log length
# - TEST_CASE=VarVis::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc # Stdout exceeds Travis' max log length
# - TEST_CASE=VarVis::test_PnPn2_Serial IFMPI=true F77=mpif77 CC=mpicc # Stdout exceeds Travis' max log length
# - TEST_CASE=VarVis::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc # Stdout exceeds Travis' max log length
- TEST_CASE=CmtInviscidVortex::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc PPLIST="$PPLIST CMTNEK"
- TEST_CASE=MvCylCvode::test_PnPn_Parallel_Steps1e3 IFMPI=true F77=mpif77 CC=mpicc PPLIST="$PPLIST CVODE" IFCVODE=true
# The Eddy_Neknek test methods include NEKENK in the PPLIST. No need to specify as env vars here.
- TEST_CASE=Eddy_Neknek::test_PnPn_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
- TEST_CASE=Eddy_Neknek::test_PnPn2_Parallel IFMPI=true F77=mpif77 CC=mpicc IFCVODE=false
before_install:
- export ROOT_DIR=`pwd`
- export SOURCE_ROOT=$ROOT_DIR
- export EXAMPLES_ROOT=$ROOT_DIR/short_tests
- export VERBOSE_TESTS=true
- export PARALLEL_PROCS=2
# Install MPICH
- sudo apt-get update -qq
- sudo apt-get install -y libmpich-dev mpich
# Set up Python virtualenv
- virtualenv -p python2.7 $ROOT_DIR/python2-env
- source $ROOT_DIR/python2-env/bin/activate
- export PYTHONPATH="$ROOT_DIR/short_tests:$PYTHONPATH"
# Install cvode
- if [ "$IFCVODE" = "true" ]; then cd 3rd_party/cvode/ && source ./install; fi
install:
- pip install --upgrade pip
- pip install pytest
script:
- py.test -s -v $ROOT_DIR/short_tests/NekTests.py::$TEST_CASE