-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
134 lines (126 loc) · 4.42 KB
/
appveyor.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "{build}"
environment:
matrix:
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.5"
PYTHON: "C:\\Python35"
JAVA_VERSION: "jdk7"
JAVA: "C:\\Program Files (x86)\\Java\\jdk1.7.0"
ANT: "1.9.14"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.5"
PYTHON: "C:\\Python35-x64"
JAVA_VERSION: "jdk7"
JAVA: "C:\\Program Files\\Java\\jdk1.7.0"
ANT: "1.9.14"
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36"
JAVA_VERSION: "jdk8"
JAVA: "C:\\Program Files (x86)\\Java\\jdk1.8.0"
ANT: "1.10.7"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36-x64"
JAVA_VERSION: "jdk8"
JAVA: "C:\\Program Files\\Java\\jdk1.8.0"
ANT: "1.10.7"
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36"
JAVA_VERSION: "jdk9"
JAVA: "C:\\Program Files (x86)\\Java\\jdk9"
ANT: "1.10.7"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36-x64"
JAVA_VERSION: "jdk9"
JAVA: "C:\\Program Files\\Java\\jdk9"
ANT: "1.10.7"
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36"
JAVA_VERSION: "jdk10"
JAVA: "C:\\Program Files (x86)\\Java\\jdk10"
ANT: "1.10.7"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36-x64"
JAVA_VERSION: "jdk10"
JAVA: "C:\\Program Files\\Java\\jdk10"
ANT: "1.10.7"
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.7"
PYTHON: "C:\\Python37"
JAVA_VERSION: "jdk11"
JAVA: "C:\\Program Files (x86)\\Java\\jdk11"
ANT: "1.10.7"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.7"
PYTHON: "C:\\Python37-x64"
JAVA_VERSION: "jdk11"
JAVA: "C:\\Program Files\\Java\\jdk11"
ANT: "1.10.7"
init:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- set JAVA_HOME=%JAVA%
- set PATH=%JAVA%\\bin;%PATH%
# 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 -
#- set PATH=%PATH%;%cd%\\..\\open-fortran-compiler
# FFB-MINI app
- git clone "https://github.com/mbdevpl/ffb-mini" "..\\ffb-mini" --branch ofp_tests
# 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"
# ant
- ps: Invoke-WebRequest "https://archive.apache.org/dist/ant/binaries/apache-ant-$Env:ANT-bin.zip" -OutFile "..\\apache-ant-$Env:ANT-bin.zip"
- ps: Expand-Archive -Path "..\\apache-ant-$Env:ANT-bin.zip" -DestinationPath "C:\\"
- set PATH=C:\\apache-ant-%ANT%\\bin;%PATH%
install:
- python -m pip install -U pip
- python -m pip install -U -r ci_requirements.txt
# Java
- python -m open_fortran_parser --deps
- set CLASSPATH=%cd%\\lib\\*;%CLASSPATH%
- ant -Dpython=python
- set CLASSPATH=%cd%\\dist\\*;%CLASSPATH%
build: off
test_script:
- set TEST_PACKAGING=1
- if [%JAVA_VERSION%]==[jdk7] set TEST_DEPENDENCIES=1
#- if [%JAVA_VERSION%]==[jdk7] set TEST_LONG=1
- set TEST_COVERAGE=1
- python -m coverage run --branch --source . -m unittest -v
after_test:
- 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
# Bintray archive preparation
- python -m pip install version_query
- ps: Invoke-WebRequest "https://gist.githubusercontent.com/mbdevpl/46d458350f0c9cc7d793b67573e01f7b/raw/prepare_bintray_deployment.py" -OutFile "prepare_bintray_deployment.py"
- python prepare_bintray_deployment.py "windows%ARCHITECTURE%-%JAVA_VERSION%-python%PYTHON_VERSION%" "dist\*.jar" "dist\*.tar.gz" "dist\*.whl" "dist\*.zip"
- set /p BINTRAY_VERSION=<.bintray_version.txt
artifacts:
- path: dist\*.jar
- path: dist\*.tar.gz
- path: dist\*.whl
- path: dist\*.zip
- path: '*-bintray.zip'
deploy:
- provider: BinTray
username: $(APPVEYOR_ACCOUNT_NAME)
api_key:
secure: cMLbWadS24XyCD5RU3XM+2GrgqtTfoBgKwkQXyDyVa/3QOF1rXheHki+BRXP5tLo
subject: $(APPVEYOR_ACCOUNT_NAME)
repo: pkgs
package: $(APPVEYOR_PROJECT_NAME)
version: $(BINTRAY_VERSION)
publish: true
override: true
explode: true
artifact: /.*-bintray\.zip/