mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
bfd288c196
This reverts commit f87f8719d0
.
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
---
|
|
cache:
|
|
- '%APPDATA%\downloads'
|
|
|
|
install:
|
|
# TODO(iphydf): Remove this when appveyor gets curl back, which it should
|
|
# have according to https://www.appveyor.com/docs/how-to/download-file/.
|
|
- choco install curl
|
|
- refreshenv
|
|
- if not exist %APPDATA%\downloads mkdir %APPDATA%\downloads
|
|
- cd third_party
|
|
# libsodium
|
|
- mkdir libsodium && cd libsodium
|
|
- if not exist %APPDATA%\downloads\libsodium.zip curl -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.16-msvc.zip -o %APPDATA%\downloads\libsodium.zip
|
|
- unzip %APPDATA%\downloads\libsodium.zip
|
|
- cd ..
|
|
# pthreads-win32
|
|
- mkdir pthreads-win32 && cd pthreads-win32
|
|
- if not exist %APPDATA%\downloads\pthreads.zip curl -L ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip -o %APPDATA%\downloads\pthreads.zip
|
|
- unzip %APPDATA%\downloads\pthreads.zip
|
|
- cd ../..
|
|
|
|
before_build:
|
|
- cmake -B_build -H. -DBOOTSTRAP_DAEMON=OFF -DENABLE_SHARED=OFF -DBUILD_TOXAV=OFF -DTEST_TIMEOUT_SECONDS=120
|
|
|
|
build:
|
|
project: _build/INSTALL.vcxproj
|
|
|
|
test_script:
|
|
- copy third_party\pthreads-win32\Pre-built.2\dll\x86\*.dll _build
|
|
- copy third_party\libsodium\Win32\Debug\v140\dynamic\libsodium.dll _build
|
|
- cd _build
|
|
# TODO(iphydf): Tests are unstable and slow on windows at the moment.
|
|
- ctest -j50 --output-on-failure -C Debug &
|
|
exit 0
|