forked from andreww/fox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 899 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: python
python:
- 2.7
sudo: false
cache:
apt: true
addons:
apt:
sources:
- kalakris-cmake
- ubuntu-toolchain-r-test
packages:
- gfortran-4.9
- cmake
env:
matrix:
# Using configure and make, run the tests.
- >
BUILD_SCRIPT="FC='gfortran -fno-backtrace' ./configure &&
make -j 2 && make -j 2 check && ./testcheck.sh"
# Using cmake - just build, tests not working yet.
- >
BUILD_SCRIPT="mkdir cmake_build/ && cd cmake_build &&
cmake ../ && make -j 2"
install:
- |
if [[ ! -d "$HOME/.local/bin" ]]; then
mkdir -p "$HOME/.local/bin"
fi
- export PATH="$HOME/.local/bin:$PATH"
- ls -l /usr/bin/gfortran-4.9
- export FC=/usr/bin/gfortran-4.9
- ln -fs /usr/bin/gfortran-4.9 "$HOME/.local/bin/gfortran"
- gfortran --version
script:
- echo $BUILD_SCRIPT
- bash <<<$BUILD_SCRIPT