KawAnime/appveyor.yml

69 lines
1.7 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
2019-10-31 11:37:41 +00:00
- variant: test_release
compiler: msvc-14.0
2019-10-31 11:14:25 +00:00
model: 64
2019-10-31 11:37:41 +00:00
python: 1
2019-10-31 11:14:25 +00:00
crypto: openssl
bjam: 1
2019-10-31 11:37:41 +00:00
cmake: 1
# - variant: test_debug
# cmake: 1
# compiler: gcc
# model: 64
# crypto: openssl
# bjam: 1
2019-10-31 11:14:25 +00:00
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
2019-10-31 11:33:36 +00:00
- ps: '"using msvc : 14.0 ;`nusing gcc : : : <cxxflags>-std=c++14 ;`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'
2019-10-31 11:24:39 +00:00
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
- cd %ROOT_DIRECTORY%
- g++ --version
2019-10-31 11:26:31 +00:00
- echo %ROOT_DIRECTORY%
2019-10-31 12:28:51 +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:33:36 +00:00
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -DBOOST_ROOT=%BOOST_ROOT% -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