-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
50 lines (42 loc) · 909 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
46
47
48
49
50
language: c
os:
- linux
- osx
compiler:
- gcc
branches:
only:
- master
before_install:
- |
if [ $TRAVIS_OS_NAME = linux ]; then
sudo apt-get purge cmake
sudo apt-key update
sudo apt-get update
sudo apt-get -y -f install gfortran python python3 cmake
fi
- |
if [ $TRAVIS_OS_NAME = osx ]; then
brew update #&& brew install gcc
export PATH=$PATH:/Users/travis/Library/Python/2.7/bin
fi
install:
- pip install --user sphinx sphinx_rtd_theme
script:
- cd docs && make html && cd ..
- cd src
- make all
- make debug
# - cd fehmpytests/ && python fehmpytests.py ../src/xfehm_v3.3.1
after_success:
- echo FEHM compilation successful
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/docs/html
github_token: $GITHUB_TOKEN
target_branch: gh-pages
keep_history: false
verbose: true
on:
branch: master