mirror of https://github.com/Kylart/KawAnime.git
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
image: Visual Studio 2017
|
|
|
|
cache:
|
|
- '%USERPROFILE%\.electron'
|
|
|
|
skip_tags: true
|
|
|
|
platform:
|
|
- x64
|
|
|
|
init:
|
|
- git config --global core.autocrlf input
|
|
|
|
environment:
|
|
matrix:
|
|
- variant: test_release
|
|
compiler: gcc
|
|
model: 64
|
|
python: 1
|
|
crypto: openssl
|
|
bjam: 1
|
|
cmake: 1
|
|
|
|
install:
|
|
- ps: Install-Product node 12 x64
|
|
- git submodule update --init --recursive
|
|
|
|
- set ROOT_DIRECTORY=%CD%
|
|
- 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="" )
|
|
- ps: '"using msvc : 14.1 ;`nusing gcc : : : <cxxflags>-std=c++14 ;`n" | Set-Content $env:HOMEDRIVE\$env:HOMEPATH\user-config.jam'
|
|
- set BOOST_ROOT=c:\Libraries\boost_1_69_0
|
|
- set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
|
|
- set PATH=c:\msys64\mingw32\bin;%PATH%
|
|
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
|
|
- cd %BOOST_BUILD_PATH%
|
|
- bootstrap.bat
|
|
- .\b2 --prefix=c:\boost-build install
|
|
- set "PATH=c:\boost-build\bin;%PATH%"
|
|
- cd %BOOST_ROOT%
|
|
- b2 cxxstd=14 address-model=64 threading=multi --with-system --with-date_time --toolset=msvc-14.1 link=static runtime-link=shared stage
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent
|
|
- mkdir build && cd build
|
|
- set BOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib
|
|
- dir %BOOST_LIBRARYDIR%
|
|
- cmake -DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017 Win64" ..
|
|
- cmake --build . --config Release -- -verbosity:minimal
|
|
- cmake --install .
|
|
- set "PATH=%BOOST_LIBRARYDIR%;%PATH%"
|
|
- set "PATH=c:/Program Files/libtorrent/;%PATH%"
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
- npm install
|
|
|
|
test_script:
|
|
- node --version
|
|
- npm --version
|
|
- npm run lint
|
|
- npm run pack
|
|
- npm run test
|
|
|
|
deploy_script:
|
|
- IF [%APPVEYOR_REPO_BRANCH%]==[master] npm run publish:win |