summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 8664baafbd7662febc7b830060448d0bda192e0f (plain)
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
---

skip_branch_with_pr: true
image: Visual Studio 2017

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%

environment:
  DEGREE_OF_PARALLELISM: 3
  matrix:
  - GENERATOR: MSYS Makefiles
    CONFIG: Release
    PARALLEL_FLAG: -j
  - GENERATOR: Visual Studio 15 2017
    CONFIG: Release
    PARALLEL_FLAG: "/m:"
    DEPLOY: 1
    ARCH: x86
  - GENERATOR: Visual Studio 15 2017 Win64
    CONFIG: Debug
    PARALLEL_FLAG: "/m:"
  - GENERATOR: Visual Studio 15 2017 Win64
    CONFIG: Release
    PARALLEL_FLAG: "/m:"
    DEPLOY: 1
    ARCH: x86_64

install:
  - pip install flake8==3.4.1

before_build:
  # Check the style of a subset of Python code until the other code is updated.
  - flake8 ./scripts/

build_script:
  # Request `libcmt.lib` is used so our released artifacts don't dynamically
  # link to `msvcrt.dll`
  - cmake .  -DCMAKE_BUILD_TYPE=%CONFIG% -G "%GENERATOR%" -DMSVC_USE_LIBCMT=YES
  - cmake --build . --config %CONFIG% -- %PARALLEL_FLAG%%DEGREE_OF_PARALLELISM%

test_script:
  - ctest --output-on-failure --timeout 10 -j 5 -C Release

before_deploy:
  - ps: |
        $NAME = "binaryen-${env:APPVEYOR_REPO_TAG_NAME}-${env:ARCH}-windows"
        Move-Item -Path bin -Destination $NAME
        7z a -ttar "${NAME}.tar" "${NAME}"
        7z a "${NAME}.tar.gz" "${NAME}.tar"
        Push-AppveyorArtifact "${NAME}.tar.gz"

deploy:
  artifact: /.*\.tar.gz/
  auth_token:
    secure: zM0Bcjy1JXOBuu2C32lY0vCxREu7ah+bYFUpwmuryw82+HgCjvq7ZMutAk34Lv9d
  description: ''
  on:
    appveyor_repo_tag: true
    DEPLOY: 1
  provider: GitHub