-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
109 lines (102 loc) · 4.31 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
sudo: required
language: generic
addons:
apt:
packages:
- ant
homebrew:
packages:
- ant
- pyenv
matrix:
include:
- os: linux
dist: trusty
language: python
python: "3.5"
env: TRAVIS_JDK_VERSION=openjdk7
- os: linux
language: python
python: "3.6"
env: TRAVIS_JDK_VERSION=openjdk11
- os: linux
language: python
python: "3.7"
env: TRAVIS_JDK_VERSION=openjdk11
- os: osx
osx_image: xcode11
language: generic
env:
- TRAVIS_PYTHON_VERSION="3.5"
- TRAVIS_JDK_VERSION=oraclejdk12
- os: osx
osx_image: xcode11
language: generic
env:
- TRAVIS_PYTHON_VERSION="3.6"
- TRAVIS_JDK_VERSION=oraclejdk12
- os: osx
osx_image: xcode11
language: generic
env:
- TRAVIS_PYTHON_VERSION="3.7"
- TRAVIS_JDK_VERSION=oraclejdk12
before_install:
- .build/install_pyenv.sh
- |
set -e
if [[ "${TRAVIS_OS_NAME}" == "linux" && "$(lsb_release -cs)" == "trusty" ]]; then
jdk_switcher use $TRAVIS_JDK_VERSION
fi
set +e
- java -version
- python --version
# Open Fortran Parser
- git clone "https://github.com/OpenFortranProject/open-fortran-parser" "../open-fortran-parser"
# Open Fortran Compiler
- git clone "https://github.com/codethinklabs/ofc" "../open-fortran-compiler"
- cd "../open-fortran-compiler" && make && cd -
- export PATH="${PATH}:$(pwd)/../open-fortran-compiler"
# FFB-MINI app
- git clone "https://github.com/mbdevpl/ffb-mini" "../ffb-mini"
# FLASH 5 app
- git clone "https://github.com/mbdevpl/FLASH5.git" "../flash5"
# miranda_io app
- git clone "https://github.com/mbdevpl/miranda_io" "../miranda_io"
install:
# dependencies
- pip install -U pip
- pip install -U -r ci_requirements.txt
# Java
- python -m open_fortran_parser --deps
- export CLASSPATH="${CLASSPATH}:$(pwd)/lib/*"
- ant -Dpython=python
- export CLASSPATH="${CLASSPATH}:$(pwd)/dist/*"
script:
- |
if [[ "${TRAVIS_JDK_VERSION}" == "openjdk7" ]]; then
export TEST_DEPENDENCIES=1
export TEST_LONG=1
fi
- TEST_PACKAGING=1 TEST_COVERAGE=1 python -m coverage run --branch --source . -m unittest -v
after_success:
- python -m coverage report --show-missing
- java -jar "lib/org.jacoco.cli-0.8.3-nodeps.jar" report "jacoco.exec" --classfiles "bin/" --sourcefiles "src/" --xml jacoco.xml
- codecov
before_deploy:
- pip3 install -U --user version_query || pip3 install -U version_query
- wget https://gist.githubusercontent.com/mbdevpl/46d458350f0c9cc7d793b67573e01f7b/raw/prepare_bintray_deployment.py
- python3 prepare_bintray_deployment.py "$TRAVIS_OS_NAME-$TRAVIS_JDK_VERSION-python$TRAVIS_PYTHON_VERSION" "dist/*.jar" "dist/*.tar.gz" "dist/*.whl" "dist/*.zip"
deploy:
- provider: bintray
file: ".bintray.json"
user: "mbdevpl"
key:
secure: "QXtjizZcEByE66zwhrhGHG+6Y9YZKXnPQxYdQYH0CFQ3zc6gakRnzsMGAAo0APhtn+EZAZjzjBXcO/WllhhPlfIInad24Q7N17MzIIoUO9exjcmahZAygXgazLaN4+hpntv/2AuQd7ZAfNXpmMtKfRSGyzKqWMwwVTvEerKigbSFZmEjyBsX4jzUxD7Mpza8XULwGf70xpfTg2T5Ovy4iwDzIhFwruWS7RjwORFWd4gyqLJrfN/LuAEmwt0BYu0qyfx7onqHUbUYWYj0gsnkHMZBftf/mJXTYmdZIBkiu/oeaYdc4DN3hEnKdJ77AMt6ny8FgP/vs4gacRX7NLBcbQlkpEueQQzAGK/E8AL2M0Os/UX7DH9tuDjON2D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