-
Notifications
You must be signed in to change notification settings - Fork 143
/
.travis.yml
66 lines (55 loc) · 1.75 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
# Continous Integration setup for SU2.
# Tests with the SU2 develop branch when the TestCases repository is modified.
language: cpp
compiler:
- g++
notifications:
email:
recipients:
branches:
only:
- develop
env:
global:
CXXFLAGS=-O3
BUILD_DIR=$TRAVIS_BUILD_DIR/SU2
matrix:
# Serial build and test
- CONFIGURE_COMMAND="./configure --prefix=$BUILD_DIR --enable-PY_WRAPPER"
TEST_SCRIPT=serial_regression.py
# Parallel build and test
- CONFIGURE_COMMAND="./configure --enable-mpi --with-cc=mpicc --with-cxx=mpicxx --prefix=$BUILD_DIR --enable-PY_WRAPPER"
TEST_SCRIPT=parallel_regression.py
before_install:
# install the necessary packages
- sudo apt-get update -qq
- sudo apt-get install -qq python-numpy python-scipy python-pip mpich2 swig
# Move all of the test data for easier copying into the SU2 repo
- mkdir TestData
- shopt -s extglob
- mv -- !(TestData) TestData
# Get the code
- git clone https://github.com/su2code/SU2.git
- cd SU2
- git checkout develop
install:
- sudo pip install mpi4py
- echo $BUILD_DIR
- echo $CONFIGURE_COMMAND
- $CONFIGURE_COMMAND
- make -j 4
- make install
# Add environmental variables according to the configure step
- export SU2_RUN=$BUILD_DIR/bin
- export SU2_HOME=$BUILD_DIR
- export PATH=$PATH:$SU2_RUN
- export PYTHONPATH=$PYTHONPATH:$SU2_RUN
before_script:
# Copy the test case data from above into the folder structure
- cp -R ../TestData/* ./TestCases/
# Enter the SU2/TestCases/ directory, which is now ready to run
- cd TestCases/
script:
# run the tests
python $TEST_SCRIPT