forked from Nic30/hdlConvertor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
61 lines (56 loc) · 2.29 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
clone_depth: 5
# https://www.appveyor.com/docs/windows-images-software/
environment:
matrix:
#- GENERATOR: -G"Visual Studio 16 2019" -A x64
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# BUILD_TYPE: Release
# PYTHON: "C:\\Python39-x64"
# # add to path otherwise Cython is not found
# PATH: $(PYTHON)\Scripts;$(PATH)
# PLATFORM: x64
# ANTLR_VER: 4.9
- GENERATOR: -G"Visual Studio 16 2019" -A x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BUILD_TYPE: Release
PYTHON: "C:\\Python39-x64"
# add to path otherwise Cython is not found
PATH: $(PYTHON)\Scripts;$(PATH)
PLATFORM: x64
ANTLR_VER: 4.9.3
#- GENERATOR: -G"Visual Studio 15 2017 Win64"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# BUILD_TYPE: Release
# PYTHON: "C:\\Python39-x64"
# # add to path otherwise Cython is not found
# PATH: $(PYTHON)\Scripts;$(PATH)
# PLATFORM: x64
# ANTLR_VER: 4.7
#- GENERATOR: Ninja
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# BUILD_TYPE: Release
# PYTHON: "C:\\Python39-x64"
# # add to path otherwise Cython is not found
# PATH: $(PYTHON)\Scripts;$(PATH)
# PLATFORM: x64
# ANTLR_VER: 4.9
install:
- 'systeminfo'
- 'git submodule update --init --recursive'
- "curl -fsS -o antlr4-complete.jar https://www.antlr.org/download/antlr-%ANTLR_VER%-complete.jar"
- "git clone https://github.com/antlr/antlr4"
- "cd antlr4/runtime/Cpp"
- "git checkout %ANTLR_VER%"
- "mkdir build"
- "cd build"
- 'cmake %GENERATOR% -DWITH_STATIC_CRT=Off -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_INSTALL_PREFIX="C:\\Program Files" ..'
- "msbuild LIBANTLR4.sln /p:configuration=%BUILD_TYPE% /p:platform=%PLATFORM%" # for other configuration installation does not work currently
- "cmake -P cmake_install.cmake"
- "cd ../../../../"
- "%PYTHON%\\python.exe -m pip install jupyter git+https://github.com/Nic30/hdlConvertorAst.git"
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
build_script:
- '%PYTHON%\\python.exe setup.py install -- -DJava_JAR_PATHS:PATH="%cd%" -DANTLR4CPP_ROOT:PATH="C:\\Program Files\\LIBANTLR4" %GENERATOR%'
- 'rmdir /s /q hdlConvertor' # to not collide with installed module
test_script:
- "%PYTHON%\\python.exe -m tests.all"