diff options
author | Peter Jas <necmon@yahoo.com> | 2016-07-11 22:42:21 +0300 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2016-07-11 12:42:21 -0700 |
commit | 7f4c1297eef1b5d846acbb52ad8ea9e4cb807683 (patch) | |
tree | daae2b84faffe82c613cbc496ad82fbeab76f38a | |
parent | e74dcc425dfb95bbf0bb296fa0d6c4494355b6e1 (diff) | |
download | binaryen-7f4c1297eef1b5d846acbb52ad8ea9e4cb807683.tar.gz binaryen-7f4c1297eef1b5d846acbb52ad8ea9e4cb807683.tar.bz2 binaryen-7f4c1297eef1b5d846acbb52ad8ea9e4cb807683.zip |
Add appveyor.yml for Windows CI (#623)
* Added jobs for MinGW (64 bit) and MSVC (32 and 64 bits) with Release
configurations as well as MSVC (64 bit) with Debug configuration.
* Added badge to README.
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | appveyor.yml | 35 |
3 files changed, 42 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 531e88a66..5cff081c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,11 @@ ELSE() ADD_COMPILE_FLAG("-Wextra") ADD_COMPILE_FLAG("-Wno-unused-parameter") ADD_COMPILE_FLAG("-fno-omit-frame-pointer") - ADD_COMPILE_FLAG("-fPIC") + IF(WIN32) + ADD_COMPILE_FLAG("-D_GNU_SOURCE") + ELSE() + ADD_COMPILE_FLAG("-fPIC") + ENDIF() IF(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") ADD_COMPILE_FLAG("-O0") ADD_COMPILE_FLAG("-g3") @@ -1,3 +1,5 @@ +[](https://travis-ci.org/WebAssembly/binaryen) [](https://ci.appveyor.com/project/WebAssembly/binaryen/branch/master) + # Binaryen Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It can: @@ -14,8 +16,6 @@ To provide those capabilities, Binaryen has a simple and flexible API for **repr Consult the [contributing instructions](Contributing.md) if you're interested in participating. -Current build status: [](https://travis-ci.org/WebAssembly/binaryen) - ## Tools This repository contains code that builds the following tools in `bin/`: diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..fb8199394 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,35 @@ +--- + +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 14 2015 + CONFIG: Release + PARALLEL_FLAG: "/m:" + - GENERATOR: Visual Studio 14 2015 Win64 + CONFIG: Debug + PARALLEL_FLAG: "/m:" + - GENERATOR: Visual Studio 14 2015 Win64 + CONFIG: Release + PARALLEL_FLAG: "/m:" + +install: + - pip install flake8 + +before_build: + # Check the style of a subset of Python code until the other code is updated. + - flake8 ./scripts/ + +build_script: + - cmake . -DCMAKE_BUILD_TYPE=%CONFIG% -G "%GENERATOR%" + - cmake --build . --config %CONFIG% -- %PARALLEL_FLAG%%DEGREE_OF_PARALLELISM% + +test_script: + - ctest --output-on-failure --timeout 10 -j 5 |