-
Notifications
You must be signed in to change notification settings - Fork 56
/
.appveyor.yml
72 lines (59 loc) · 1.59 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
65
66
67
68
69
70
71
72
clone_depth: 50
platform:
- x64
branches:
except:
- l10n_develop
- travis
cache:
- .ccache
environment:
CCACHE_DIR: "%APPVEYOR_BUILD_FOLDER%\\.ccache"
CCACHE_MAXSIZE: 1
configuration:
# - Debug
- Release
# - RelWithDebInfo
install:
- git submodule update --init --recursive
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
- pacman --noconfirm -Syuu --needed
# - pacman --noconfirm -S mingw-w64-x86_64-cmake
- pacman --noconfirm -S mingw-w64-x86_64-drmingw
# - pacman --noconfirm -S mingw-w64-x86_64-jemalloc
- pacman --noconfirm -S mingw-w64-x86_64-boost
- pacman --noconfirm -S mingw-w64-x86_64-libxml2
- pacman --noconfirm -S --force mingw-w64-x86_64-qt5
- pacman --noconfirm -S mingw-w64-x86_64-ccache
before_build:
- md install
- md build
build_script:
- ccache -s
- where cmake
- where make
- cd build
- cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DWITH_JEMALLOC=OFF -DBUILD_TESTING=ON -DCMAKE_VERBOSE_MAKEFILE=ON
- make install/strip -j 2
- cd ..
- ccache -s
after_build:
- set PATH=%PATH%;%CD%\install\bin
test_script:
- catchsegv scram_tests
- catchsegv scram --version
- catchsegv scram input\TwoTrain\two_train.xml
- cd build
- ctest --verbose
- cd ..
after_test:
- cd build
- cmake .. -DPACKAGE=ON
- cpack --verbose
- dir
- cd ..
on_failure:
- type build\_CPack_Packages\win64\NSIS\NSISOutput.log
artifacts:
- path: build/SCRAM*.exe
name: installer