KawAnime/appveyor.yml

54 lines
1.0 KiB
YAML
Raw Normal View History

2019-10-31 10:50:48 +00:00
image: Visual Studio 2019
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:
- cmake: 1
# - 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
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 10:50:48 +00:00
- choco install ninja
2019-10-31 11:14:25 +00:00
- g++ --version
- 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