mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
138492a94a
894: Add a flag `-DDOWNLOAD_GTEST` to automatically download and build GTest r=Learath2 a=heinrich5991 Enable tests on Circle CI, macOS on Travis and Appveyor.
40 lines
995 B
YAML
40 lines
995 B
YAML
image: Visual Studio 2015
|
|
|
|
before_build:
|
|
- cmd: |
|
|
git submodule update --init
|
|
|
|
md build32 & cd build32
|
|
cmake -Werror=dev -G "Visual Studio 14 2015" ..
|
|
cd ..
|
|
|
|
md build64 & cd build64
|
|
cmake -Werror=dev -G "Visual Studio 14 2015 Win64" ..
|
|
cd ..
|
|
|
|
build_script:
|
|
- cmd: cmake --build build32 --config Release --target everything
|
|
- cmd: cmake --build build64 --config Release --target everything
|
|
|
|
test_script:
|
|
- cmd: cmake --build build32 --config Debug --target run_tests
|
|
- cmd: cmake --build build64 --config Debug --target run_tests
|
|
- cmd: cmake --build build32 --config Release --target run_tests
|
|
- cmd: cmake --build build64 --config Release --target run_tests
|
|
|
|
after_build:
|
|
- cmd: cmake --build build32 --config Release --target package
|
|
- cmd: cmake --build build64 --config Release --target package
|
|
|
|
environment:
|
|
CFLAGS: /WX
|
|
CXXFLAGS: /WX
|
|
LDFLAGS: /WX
|
|
|
|
artifacts:
|
|
- path: build*/DDNet-*.zip
|
|
name: DDNet
|
|
branches:
|
|
except:
|
|
- staging.tmp
|