forked from WebAssembly/wabt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
64 lines (56 loc) · 1.67 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
---
init:
- set PATH=C:\Python27\Scripts;%PATH% # while python's bin is already in PATH, but pip.exe in Scripts\ dir isn't
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
# Python doesn't seem to be able to import files from the current script's
# directory on Windows.
- set PYTHONPATH=%APPVEYOR_BUILD_FOLDER%\test
install:
- git submodule update --init
environment:
JOBS: 3
matrix:
- GENERATOR: MSYS Makefiles
CONFIG: Release
JOBS_FLAG: -j
EXE_DIR: .
DEPLOY: false
- GENERATOR: Visual Studio 14 2015
CONFIG: Release
JOBS_FLAG: "/m:"
EXE_DIR: '%CONFIG%'
DEPLOY: true
DEPLOY_NAME: wabt-%APPVEYOR_REPO_TAG_NAME%-win32.zip
- GENERATOR: Visual Studio 14 2015 Win64
CONFIG: Debug
JOBS_FLAG: "/m:"
EXE_DIR: '%CONFIG%'
DEPLOY: false
- GENERATOR: Visual Studio 14 2015 Win64
CONFIG: Release
JOBS_FLAG: "/m:"
EXE_DIR: '%CONFIG%'
DEPLOY: true
DEPLOY_NAME: wabt-%APPVEYOR_REPO_TAG_NAME%-win64.zip
build_script:
- cmake . -DCMAKE_BUILD_TYPE=%CONFIG% -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER% -G "%GENERATOR%"
- cmake --build . --config %CONFIG% --target install -- %JOBS_FLAG%%JOBS%
test_script:
- python test\run-tests.py -v --bindir %APPVEYOR_BUILD_FOLDER%\bin
# Must happen before artifacts step.
after_test:
- call scripts\appveyor-after-test.bat
artifacts:
- path: "%DEPLOY_NAME%"
name: wabt
- path: "%DEPLOY_NAME%.sha256"
name: sha256
deploy:
description: 'wabt release'
provider: GitHub
auth_token:
secure: lHQSdycL1FHsFKZZ0RSnYSUtRitYaLb4uxDjCSOpYHnk4gIO/0/DLu4aoU2VvD7Y
artifact: wabt,sha256
on:
appveyor_repo_tag: true
deploy: true