-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
64 lines (54 loc) · 1.67 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '{build}'
branches:
only:
- master
image:
- Visual Studio 2017
#- Ubuntu1804
configuration:
- Release
platform:
- x86
- x64
environment:
matrix:
- TEST_SUITE: --gtest_filter=-Dumps_Tape_Protections*
- TEST_SUITE: --gtest_filter=Dumps_Tape_Protections.*:-Dumps_Tape_Protections.Speedlock*:Dumps_Tape_Protections.Spectrum*:Dumps_Tape_Protections.U*
- TEST_SUITE: --gtest_filter=Dumps_Tape_Protections.Speedlock*
- TEST_SUITE: --gtest_filter=Dumps_Tape_Protections.Spectrum*:Dumps_Tape_Protections.U*
install:
- git submodule update --init --recursive
- git submodule init
- sh: |-
echo 'Update to gcc8'
sudo update-alternatives --set gcc /usr/bin/gcc-8
sudo apt-get install udev
sudo apt-get install libudev-dev
sudo apt-get install build-essential libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew-dev libjpeg-dev libsndfile1-dev libopenal-dev
before_build:
- cmd: |-
if %platform%==x64 ( set CMAKE_GENERATOR="Visual Studio 15 2017 Win64" ) else ( set CMAKE_GENERATOR="Visual Studio 15 2017")
mkdir build
cd build
cmake --version
echo %CMAKE_GENERATOR%
cmake .. -DGENERATE_UNITTESTS=TRUE -G %CMAKE_GENERATOR%
- sh: |-
mkdir build
cd build
cmake --version
cmake -DGENERATE_UNITTESTS=TRUE ..
build_script:
- cmd : |-
cmake --build . --config %configuration% --target install
- sh: |-
make all
make install
only_commits:
files:
- CMakeLists.txt
- appveyor.yml
- CPCCoreEmu
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build
- '%APPVEYOR_BUILD_FOLDER%\build\UnitTests\%CONFIGURATION%\unitTests.exe %TEST_SUITE%'