forked from lzhw1991/AcousticBEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (37 loc) · 1.42 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
matrix:
include:
- os: linux
compiler: gcc
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install -qq gcc-4.9; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo unlink /usr/bin/gcc; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install -qq gfortran-4.9; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ln -s /usr/bin/gfortran-4.9 /usr/bin/gfortran; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC="gcc-4.9"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export gcc="gcc-4.9"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export gfortran="gfortran-4.9"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install python-numpy; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --yes install python-scipy; fi
install:
- pwd
- gcc --version
- gfortran --version
- python --version
- cd C
- make
- cd ..
- cd Python
- export PYTHONPATH=`pwd`
- python UnitTests.py
- cd ..
- cd Fortran
- gcc --version
- gfortran --version
- make
- cd ..
script:
- echo "Done"