KawAnime/appveyor.yml

68 lines
1.8 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:
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
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 12:44:55 +00:00
- 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
2019-10-31 16:15:33 +00:00
- ps: '"using msvc : 14.0 ;`nusing gcc : : : <cxxflags>-std=c++14 ;`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%
2019-10-31 12:31:05 +00:00
- set PATH=c:\msys64\mingw32\bin;%PATH%
2019-10-31 11:24:39 +00:00
- g++ --version
2019-10-31 11:26:31 +00:00
- echo %ROOT_DIRECTORY%
2019-10-31 12:42:55 +00:00
- cd %BOOST_BUILD_PATH%\src\engine
- build.bat >nul
2019-10-31 12:31:05 +00:00
- cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent
2019-10-31 10:50:48 +00:00
- mkdir build && cd build
2019-10-31 12:42:55 +00:00
- set "PATH=c:\Python27-x64;%PATH%"
2019-10-31 17:44:21 +00:00
- cmake --help
2019-10-31 14:41:57 +00:00
- cmake -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 14 2015 Win64" ..
- cmake --build . --config Release -- -verbosity:minimal
- cmake --install .
2019-10-31 14:17:41 +00:00
- set "PATH=c:/Program Files/libtorrent/;%PATH%"
- 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