forked from jacobwilliams/pyplot-fortran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1.5 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
language: python
python:
- 2.7
virtualenv:
system_site_packages: true
before_install:
- 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 ford && 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 pyplot_module.f90 -o libpyplot.a -mklib static -colors
- FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./bin/ -s ./src/tests/ -dmod ./ -dobj ./ -colors -libs ./lib/libpyplot.a --include ./lib/
script:
- ./bin/test
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 ./pyplot-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