-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.travis.yml
73 lines (64 loc) · 1.92 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
language: python
dist: bionic
python:
- 3.8
cache:
apt: true
pip: true
directories:
- $HOME/.cache/pip
- $HOME/.local
env:
global:
- MAKECOVERAGE="FoBiS.py rule -ex makecoverage"
- MAKEDOC="./scripts/makedoc.sh szaghi/FLAP"
- CLEAN="FoBiS.py rule -ex clean"
- MAKETAR="FoBiS.py rule -ex maketar"
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -q update
- sudo apt-get -y install binutils
- sudo apt-get -y install graphviz
- sudo apt-get -y install gfortran-9
- sudo apt-get -y install python3-pip
- sudo apt-get -y install python3-setuptools
- python --version
- git submodule update --init
install:
- |
if [[ ! -d "$HOME/.local/bin" ]]; then
mkdir "$HOME/.local/bin"
fi
- export PATH="$HOME/.local/bin:$PATH"
- export FC=/usr/bin/gfortran-9
- ln -fs /usr/bin/gfortran-9 "$HOME/.local/bin/gfortran" && gfortran --version
- ls -l /usr/bin/gfortran-9
- ln -fs /usr/bin/gcov-9 "$HOME/.local/bin/gcov" && gcov --version
- sudo -H pip3 install --upgrade pygooglechart
- sudo -H pip3 install --upgrade graphviz
- sudo -H pip3 install --upgrade future
- sudo -H pip3 install --upgrade configparser
- sudo -H pip3 install --upgrade markdown-checklist
- sudo -H pip3 install --upgrade ford
- sudo -H pip3 install --upgrade FoBiS.py && FoBiS.py --version
script:
- $MAKECOVERAGE
after_success:
- find . -name '*.gcno' -print
- bash <(curl -s https://codecov.io/bash)
- $MAKEDOC
before_deploy:
- $CLEAN
- $MAKETAR
- mv FLAP.tar.gz FLAP-$TRAVIS_TAG.tar.gz
deploy:
provider: releases
api_key:
secure: MqRf9dWvZak0yEzTUcrf/tlfWztVLJe1OImUZBHfJLWE3GjtM8VLv50otNOyb+JNUYfV8e86F5Tzouxxp5xD54RhDhSKnG3f2RSpVJ3BwTewIXsJEYlV14Ec1xlKCLkg6EEZg1Fn/eZDLonjicm1whTP9GJb3GCWL9X1y6mPCt0=
file:
- FLAP-$TRAVIS_TAG.tar.gz
- ./scripts/install.sh
skip_cleanup: true
overwrite: true
on:
tags: true