-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
89 lines (80 loc) · 2.25 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
sudo: false
language: c
os:
- linux
env:
global:
- GH_REF: github.com/Fortran-FOSS-Programmers/flogging
- ENCRYPTION_LABEL: "59525d4507cc"
- COMMIT_AUTHOR_EMAIL: "[email protected]"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- gfortran-5
- python-pip
- python-virtualenv
- graphviz
cache:
apt: true
pip: true
directories:
- $HOME/.cache/pip
- $HOME/.local
install:
- export LOCAL_ROOT=$HOME/.local
- export LOCAL_BIN=$LOCAL_ROOT/bin
- export LOCAL_LIB=$LOCAL_ROOT/lib
- export LOCAL_INC=$LOCAL_ROOT/include
- export PATH=$LOCAL_BIN:/usr/local/bin:/usr/bin:$PATH
- mkdir -p $LOCAL_ROOT
- mkdir -p $LOCAL_BIN
- mkdir -p $LOCAL_LIB
- mkdir -p $LOCAL_INC
- if [ ! -d $HOME/venv ]; then virtualenv $HOME/venv; fi
- if [ -e $LOCAL_BIN/gcov ]; then rm $LOCAL_BIN/gcov; fi
- ln -s `which gcov-5` $LOCAL_BIN/gcov
- if [ -e $LOCAL_BIN/gfortran ]; then rm $LOCAL_BIN/gfortran; fi
- ln -s `which gfortran-5` $LOCAL_BIN/gfortran
# - source $HOME/venv/bin/activate
- pip install --user --upgrade graphviz
- pip install --user --upgrade ford && ford --version
- pip install --user --upgrade ghp-import
- pip install --user --upgrade codecov
- pip install --user --upgrade FoBiS.py
- pip install --user --upgrade pygooglechart
- |
if [ ! -d $HOME/pFUnit ]; then
git clone git://git.code.sf.net/p/pfunit/code $HOME/pFUnit
cd $HOME/pFUnit
else
cd $HOME/pFUnit
git pull
fi
- export F90_VENDOR=GNU
- export F90=gfortran-5
- make tests
- make install INSTALL_DIR=$LOCAL_BIN/pfunit-serial
- export PFUNIT=$LOCAL_BIN/pfunit-serial
- cd -
- |
if [ ! -d $HOME/face ]; then
git clone https://github.com/szaghi/FACE $HOME/face
cd $HOME/face
else
cd $HOME/face
git pull
fi
- FoBiS.py build -mode face-static-gnu
- cp `FoBiS.py rule -mode face-static-gnu -get_output_name` $LOCAL_LIB
- cp `FoBiS.py rule -mode face-static-gnu -get build_dir`/mod/face.mod $LOCAL_INC
- cd -
script:
- ./buildtests.sh
after_success:
- echo "SUCCESS!"
- gcov $(FoBiS.py rule -mode gnu-static -get build_dir)/$(FoBiS.py rule -mode gnu-static -get obj_dir)/*.gcno -p
- codecov -X gcov
- ./deploy.sh