--- 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