Changed visual studio image and build instruction compiler gcc

This commit is contained in:
Kylart 2019-11-02 01:58:07 +01:00
parent c3d8c463b7
commit da42f9ac0e
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
image: Visual Studio 2015 image: Visual Studio 2017
cache: cache:
- '%USERPROFILE%\.electron' - '%USERPROFILE%\.electron'
@ -14,7 +14,7 @@ init:
environment: environment:
matrix: matrix:
- variant: test_release - variant: test_release
compiler: msvc-14.0 compiler: gcc
model: 64 model: 64
python: 1 python: 1
crypto: openssl crypto: openssl
@ -47,13 +47,14 @@ install:
- build.bat >nul - build.bat >nul
- cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent - cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent
- bjam cxxstd=14 release --with-python --with-system --layout=system address-model=64 link=shared stage
- mkdir build && cd build - mkdir build && cd build
- set "PATH=c:\Python27-x64;%PATH%" - set "PATH=c:\Python27-x64;%PATH%"
- cmake --help - cmake -DBOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017" -A x64 ..
- cmake -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 14 2015 Win64" ..
- cmake --build . --config Release -- -verbosity:minimal - cmake --build . --config Release -- -verbosity:minimal
- cmake --install . - cmake --install .
- set "PATH=c:/Program Files/libtorrent/;%PATH%" - set "PATH=c:/Program Files/libtorrent/;%PATH%"
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
- npm install - npm install