forked from cutelyst/cutelyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (69 loc) · 1.78 KB
/
.travis.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
73
74
75
76
77
language: cpp
dist: trusty
branches:
only:
- master
- travis_macos
osx_image: xcode12.2
addons:
homebrew:
packages:
- cmake
- qt5
os:
- linux
- osx
env:
- CONFIG=Release
- CONFIG=Debug
compiler:
- clang
- gcc
before_install:
- QT_VERSION_MM=56
- QT_VERSION_FULL=562-trusty
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-add-repository --yes ppa:beineri/opt-qt$QT_VERSION_FULL
&& sudo apt-get update -qq
&& sudo apt-get install -y
uwsgi uuid-dev libcap-dev libzmq3-dev libpcre3-dev zlib1g-dev libssl-dev
clearsilver-dev
libmemcached-dev
libjemalloc-dev
libpwquality-dev
qt${QT_VERSION_MM}base qt${QT_VERSION_MM}tools
&& export CMAKE_PREFIX_PATH=/opt/qt${QT_VERSION_MM};
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export CMAKE_PREFIX_PATH=$(brew --prefix qt5);
fi
before_script:
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DENABLE_MAINTAINER_CFLAGS=on -DBUILD_ALL=on
-DPLUGIN_VIEW_EMAIL=off
-DPLUGIN_VIEW_CUTELEE=off
-DPLUGIN_VIEW_GRANTLEE=off
-DPLUGIN_VIEW_CLEARSILVER=off
-DPLUGIN_MEMCACHED=off
-DPLUGIN_MEMCACHEDSESSIONSTORE=off
-DPLUGIN_UWSGI=off
-DPLUGIN_VALIDATOR_PWQUALITY=off
-DUSE_JEMALLOC=off
-DBUILD_DOCS=off
;fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DENABLE_MAINTAINER_CFLAGS=on -DBUILD_ALL=on
-DPLUGIN_VIEW_EMAIL=off
-DPLUGIN_VIEW_CUTELEE=off
-DPLUGIN_VIEW_GRANTLEE=off
-DBUILD_DOCS=off
;fi
script:
- cmake --build . --config $CONFIG &&
ctest --output-on-failure
notifications:
email:
recipients: