1branches: 2 only: 3 - master 4 5environment: 6 matrix: 7 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 8 BUILD_SYSTEM: CMake 9 GENERATOR: Visual Studio 15 2017 Win64 10 CONFIG: Release 11 12 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 13 BUILD_SYSTEM: CMake 14 GENERATOR: Visual Studio 15 2017 Win64 15 CONFIG: Debug 16 17 - BUILD_SYSTEM: CMake 18 GENERATOR: Visual Studio 14 2015 Win64 19 CONFIG: Debug 20 21 - BUILD_SYSTEM: CMake 22 GENERATOR: Visual Studio 14 2015 23 CONFIG: Debug 24 25 - BUILD_SYSTEM: Python 26 PYTHON: "C:\\Python27" 27 PYTHON_VERSION: "2.7.x" 28 PYTHON_ARCH: "32" 29 30 - BUILD_SYSTEM: Python 31 PYTHON: "C:\\Python36-x64" 32 PYTHON_VERSION: "3.6.x" 33 PYTHON_ARCH: "64" 34 35 - BUILD_SYSTEM: make 36 ARCH: "i686" 37 38 - BUILD_SYSTEM: make 39 ARCH: "x86_64" 40 41 - BUILD_SYSTEM: bazel 42 43install: 44- IF "%BUILD_SYSTEM%"=="Python" ( 45 SET "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%" && 46 python -m pip install --upgrade pip && 47 pip install --upgrade setuptools 48 ) 49- IF "%BUILD_SYSTEM%"=="make" ( 50 IF "%ARCH%"=="i686" ( 51 SET "TOOLCHAIN=i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32" 52 ) ELSE ( 53 SET "TOOLCHAIN=x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64" 54 ) 55 ) 56- IF "%BUILD_SYSTEM%"=="bazel" ( 57 appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/2.2.0/bazel-2.2.0-windows-x86_64.exe -FileName bazel.exe 58 ) 59 60before_build: 61- FOR /f %%i in ('C:\cygwin64\bin\date.exe +%%Y-%%m-%%d') DO SET "RELEASE_DATE=%%i" 62- IF "%BUILD_SYSTEM%"=="CMake" ( mkdir builddir && cd builddir && cmake -G "%GENERATOR%" .. ) 63- IF "%BUILD_SYSTEM%"=="make" ( 64 SET "CC=gcc" && 65 SET "PATH=C:\mingw-w64\%TOOLCHAIN%\bin;%PATH%" && 66 COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\%TOOLCHAIN%\bin\make.exe 67 ) 68- SET "ROOT=%APPVEYOR_BUILD_FOLDER%" 69 70build_script: 71- IF "%BUILD_SYSTEM%"=="CMake" ( cmake --build . --config %CONFIG% ) 72- IF "%BUILD_SYSTEM%"=="Python" ( python setup.py build_ext ) 73- IF "%BUILD_SYSTEM%"=="make" ( 74 sh -c "make brotli" && 75 cd bin && 7z a -tzip -mx9 brotli-win-%ARCH%-%RELEASE_DATE%.zip brotli.exe && 76 appveyor PushArtifact brotli-win-%ARCH%-%RELEASE_DATE%.zip && cd .. 77 ) 78- IF "%BUILD_SYSTEM%"=="bazel" ( 79 cd java && 80 %ROOT%\bazel.exe --batch build -c opt org/brotli/wrapper/...:all && 81 python %ROOT%\scripts\fix-win-bazel-build.py && 82 cd bazel-bin && 83 7z a -tzip -mx9 brotli-win-bazel-jni-%RELEASE_DATE%.zip brotli_jni.dll && 84 appveyor PushArtifact brotli-win-bazel-jni-%RELEASE_DATE%.zip && 85 cd .. && 86 cd .. 87 ) 88 89test_script: 90- IF "%BUILD_SYSTEM%"=="CMake" ( ctest --output-on-failure --interactive-debug-mode 0 -C %CONFIG% ) 91- IF "%BUILD_SYSTEM%"=="Python" ( python setup.py test ) 92- IF "%BUILD_SYSTEM%"=="make" ( sh -c "make test" ) 93- IF "%BUILD_SYSTEM%"=="bazel" ( 94 cd java && 95 %ROOT%\bazel.exe --batch test -c opt --test_output streamed org/brotli/wrapper/...:all && 96 cd .. 97 ) 98 99deploy: 100- provider: BinTray 101 on: 102 branch: master 103 username: eustas 104 api_key: 105 secure: B3rM8JYeIHIw6BfOjHggAeyTmxEf8ZDYmyF9gCwqyWaxyxECD9BuN50SiV2KE/RI 106 subject: eustas 107 repo: brotli 108 package: bin 109 version: latest 110 publish: true 111 override: true 112