forked from cutelyst/simple-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1017 Bytes
/
.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
language: cpp
sudo: required
dist: trusty
branches:
only:
- master
osx_image: xcode10.1
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 -qq 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
brew update;
brew outdated cmake || brew upgrade cmake;
brew install qt5;
export CMAKE_PREFIX_PATH=$(brew --prefix qt5);
fi
before_script:
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DDISABLE_MAINTAINER_CFLAGS=off
script:
- cmake --build . --config $CONFIG &&
ctest --output-on-failure
notifications:
email:
recipients: