mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
cb69b8a986
Tests are not actually ran on appveyor for now, since they all fault for some reason. For now, we just build them. Also, some tests are disabled on msvc entirely, because they don't even compile. We'll need to look into those, later. They are disabled using `MSVC_DONT_BUILD`.
39 lines
1.3 KiB
YAML
39 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
|
|
# libcheck
|
|
- if not exist %APPDATA%\downloads\check.zip curl -L https://github.com/libcheck/check/archive/0.11.0.zip -o %APPDATA%\downloads\check.zip
|
|
- unzip %APPDATA%\downloads\check.zip && cd check-0.11.0
|
|
- if not exist "%PROGRAMFILES%\check\include\check.h" cmake . && msbuild INSTALL.vcxproj
|
|
- cd ..
|
|
# libsodium
|
|
- mkdir libsodium && cd libsodium
|
|
- if not exist %APPDATA%\downloads\libsodium.zip curl -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.12-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 . -DBOOTSTRAP_DAEMON=OFF -DENABLE_SHARED=OFF -DBUILD_TOXAV=OFF
|
|
|
|
build:
|
|
project: INSTALL.vcxproj
|
|
|
|
# TODO(iphydf): Tests all segfault on Windows at the moment.
|
|
#test_script:
|
|
#- ctest -C Debug
|
|
|
|
branches:
|
|
only:
|
|
- master
|