KawAnime/appveyor.yml

59 lines
1.9 KiB
YAML
Raw Normal View History

image: Visual Studio 2017
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 11:01:27 +00:00
- git submodule update --init --recursive
2019-10-31 11:24:39 +00:00
- 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="" )
2019-11-05 01:34:53 +00:00
- ps: '"using msvc : 14.1 ;`nusing gcc : : : <cxxflags>-std=c++14 ;`n" | Set-Content $env:HOMEDRIVE\$env:HOMEPATH\user-config.jam'
2019-10-31 11:24:39 +00:00
- 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
2019-11-05 10:02:21 +00:00
- set PATH=c:\msys64\mingw32\bin;%PATH%
2019-10-31 11:24:39 +00:00
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
2019-11-05 09:45:15 +00:00
- cd %BOOST_BUILD_PATH%
- bootstrap.bat
2019-11-05 09:54:39 +00:00
- .\b2 --prefix=c:\boost-build install
- set "PATH=c:\boost-build\bin;%PATH%"
2019-11-02 01:06:50 +00:00
- 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
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
- set BOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib
- dir %BOOST_LIBRARYDIR%
2019-11-04 16:49:39 +00:00
- cmake -DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017 Win64" ..
2019-10-31 14:41:57 +00:00
- cmake --build . --config Release -- -verbosity:minimal
- cmake --install .
2019-11-04 23:45:53 +00:00
- set "PATH=%BOOST_LIBRARYDIR%;%PATH%"
2019-11-04 16:49:39 +00:00
- set "PATH=c:/Program Files/libtorrent/;%PATH%"
- cd %APPVEYOR_BUILD_FOLDER%
2019-06-14 12:59:43 +00:00
- npm install
2019-11-06 11:49:49 +00:00
- del /Q/S %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent\build\libtorrent.sln
- del /Q/S %APPVEYOR_BUILD_FOLDER%\bindings\build\kawabinds.sln
2019-06-14 12:59:43 +00:00
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