forked from jacobwilliams/bspline-fortran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (40 loc) · 1.71 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
language: python
python:
- 2.7
before_install:
- which python
- python --version
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq python-numpy python-scipy
- sudo apt-get install gfortran-4.9
- sudo apt-get install graphviz
- sudo ln -fs /usr/bin/gfortran-4.9 /usr/bin/gfortran && gfortran --version
- sudo -H pip install FoBiS.py && FoBiS.py --version
- sudo -H pip install --upgrade ford==6.0.0 && ford --version
- sudo -H pip install matplotlib
- export PATH=".:$PATH"
before_script:
- FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./lib/ -s ./src/ -dmod ./ -dobj ./ -t bspline_module.f90 -o libbspline.a -mklib static -colors
- FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./bin/ -s ./src/tests/ -dmod ./ -dobj ./ -colors -libs ./lib/libbspline.a --include ./lib/
script:
- ./bin/bspline_test
- ./bin/bspline_test_2
- ./bin/bspline_extrap_test
- ./bin/test_regrid
- ./bin/knot_tests
- ./bin/speed_test_oo
- ./bin/speed_test
- ./bin/test_integrate
- ./bin/test_oo
after_success:
- git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
- git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
- git clone -q --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages >/dev/null 2>&1
- rm -rf gh-pages/*
- ford ./bspline-fortran.md
- cp -rf ./doc/* gh-pages/
- cd gh-pages/
- git add -f --all * || true
- git commit -m "Travis CI autocommit from Travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT" || true
- git push -fq origin gh-pages > /dev/null 2>&1 || true