Skip to content

Commit 77e6683

Browse files
committed
add travis.yml file.
1 parent 7c9d067 commit 77e6683

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: python
2+
3+
python:
4+
- 2.7
5+
6+
before_install:
7+
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
8+
- sudo apt-get update -qq
9+
- sudo apt-get install gfortran-4.9
10+
- sudo ln -fs /usr/bin/gfortran-4.9 /usr/bin/gfortran && gfortran --version
11+
- sudo -H pip install FoBiS.py && FoBiS.py --version
12+
- sudo -H pip install ford && ford --version
13+
- export PATH=".:$PATH"
14+
15+
before_script:
16+
- 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
17+
- FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./bin/ -s ./src/tests/ -dmod ./ -dobj ./ -colors -libs ./lib/libpyplot.a --include ./lib/
18+
19+
script:
20+
- ./bin/test
21+
22+
after_success:
23+
- git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
24+
- git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
25+
- git clone --branch=gh-pages https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG gh-pages
26+
- rm -rf gh-pages/*
27+
- ford ./pyplot-fortran.md
28+
- cp -rf ./doc/* gh-pages/
29+
- cd gh-pages/
30+
- git add -f --all *
31+
- git commit -m "Travis CI autocommit from Travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT"
32+
- git push -fq origin gh-pages

0 commit comments

Comments
 (0)