KawAnime/appveyor.yml

76 lines
1.9 KiB
YAML
Raw Normal View History

2019-10-31 11:17:55 +00:00
image: Visual Studio 2015
2019-06-14 12:59:43 +00:00
cache:
- '%USERPROFILE%\.electron'
skip_tags: true
2019-06-14 12:59:43 +00:00
platform:
- x64
init:
- git config --global core.autocrlf input
2019-10-31 11:14:25 +00:00
environment:
matrix:
# - variant: test_debug
# compiler: msvc-14.0
# model: 32
# bjam: 1
# - variant: test_release
# compiler: msvc-14.0
# model: 64
# python: 1
# crypto: openssl
# bjam: 1
- variant: test_debug
2019-10-31 11:18:29 +00:00
cmake: 1
2019-10-31 11:14:25 +00:00
compiler: gcc
model: 64
crypto: openssl
bjam: 1
2019-06-14 12:59:43 +00:00
install:
- ps: Install-Product node 12 x64
2019-10-31 11:01:27 +00:00
- git submodule update --init --recursive
2019-10-31 11:24:39 +00:00
- set ROOT_DIRECTORY=%CD%
- cd %ROOT_DIRECTORY%
- if not defined compiler ( set compiler="" )
- if not defined crypto ( set crypto=built-in )
- if not defined linkflags ( set linkflags="" )
- if not defined include ( set include="" )
- cd %ROOT_DIRECTORY%
- set BOOST_ROOT=c:\Libraries\boost_1_69_0
- set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
- echo %BOOST_ROOT%
- echo %BOOST_BUILD_PATH%
- set PATH=%PATH%;%BOOST_BUILD_PATH%\src\engine\bin.ntx86
- ps: '"using msvc : 14.0 ;`nusing gcc : : : <cxxflags>-std=c++11 ;`nusing python : 3.5 : c:\\Python35-x64 : c:\\Python35-x64\\include : c:\\Python35-x64\\libs ;`n" | Set-Content $env:HOMEDRIVE\$env:HOMEPATH\user-config.jam'
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
- cd %ROOT_DIRECTORY%
- set PATH=c:\msys64\mingw32\bin;%PATH%
- g++ --version
2019-10-31 11:26:31 +00:00
- echo %ROOT_DIRECTORY%
- cd %BOOST_BUILD_PATH%\src\engine
- build.bat >nul
- cd %ROOT_DIRECTORY%
2019-10-31 11:24:39 +00:00
2019-10-31 10:50:48 +00:00
- choco install ninja
- cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent
2019-10-31 10:50:48 +00:00
- mkdir build && cd build
2019-10-31 11:01:27 +00:00
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -G Ninja ..
2019-10-31 10:50:48 +00:00
- ninja
- ninja install
- cd %APPVEYOR_BUILD_FOLDER%
2019-06-14 12:59:43 +00:00
- npm install
test_script:
2019-07-03 21:37:35 +00:00
- node --version
- npm --version
2019-06-14 12:59:43 +00:00
- npm run lint
2019-07-03 20:45:09 +00:00
- npm run pack
- npm run test
2019-06-14 12:59:43 +00:00
2019-07-20 18:01:26 +00:00
deploy_script:
2019-06-14 12:59:43 +00:00
- IF [%APPVEYOR_REPO_BRANCH%]==[master] npm run publish:win