KawAnime/appveyor.yml

33 lines
676 B
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
install:
- ps: Install-Product node 12 x64
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 10:58:20 +00:00
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -G Ninja %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent
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