forked from cmakespark/cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (60 loc) · 1.84 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
language: cpp
sudo: false
dist: xenial
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- CTEST_OUTPUT_ON_FAILURE=1
matrix:
- CMAKE_BUILD_TYPE=Debug
- CMAKE_BUILD_TYPE=Release
matrix:
exclude:
- os: linux
compiler: clang
- os: osx
compiler: gcc
addons:
apt:
packages:
- ninja-build
- qtbase5-dev
- gcc-5
- valgrind
before_install:
- |
# Install cmake and ninja
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
export QTDIR=/usr/lib/x86_64-linux-gnu/qt5
export PATH="$QTDIR/bin:$PATH"
else
brew update > /dev/null
brew tap homebrew/versions
brew install ninja
brew install qt
export QTDIR="/usr/local/opt/qt5"
export PATH="$QTDIR/bin:$PATH"
fi
install:
- |
# Run cmake
mkdir /tmp/build
cd /tmp/build
cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=/tmp/ ${TRAVIS_BUILD_DIR}
script:
- cmake --build . --target cmakespark
- cmake --build . --target all
- cmake --build . --target runtests
deploy:
provider: releases
api_key:
secure: PuJwafNV/FQYr9vQpVnvabbObtR5pnuKlyfSFRLUydMIQZ+XWPHGyv9AUFAY4juR0KRPJzztWyOZKnJdITCU11BPx93PGOCC8/6swRsWW5PFTIgTnH3H71bXX2WIVqgUY3UjPkEQY3xOyr+92tP62coOulyyAVXwdpFdlYEM/bDsSIvmRrT/ux9uGh/2Hnkxe5Cm1yykjdzI8vhTRvRcZIYLBysO6s+7Av6DJpysY2QxH2ibZkYp3fBNbyTyrkn76VOs/Phwc+a7bufDCVwGF3OWqDHFsP81OitSlBow0F292uK+ToFWC26XtrGFEvvWr5nKhj+1ZRE8/YbOnIvbxssWHcO+l5t8zCrNP3gkQLgyHRcNhCca4LJUwFOd564DqP9D+Jdc4dEvOCnr+U/fEvRJViPDkHglifU2weL6eED9Ex6yHt3lInzlrEvcsgLnvIlyKE8rLq7iMiZIeSJG8uK5+Mkd2HNOijOZq17r6qyqKoctbmDvkP+YbomZZPxYUKLCaORJ+eOdPej34+3eU/yO5ZZDN387ign2lLTZjsNT/oupN4S7C/oOfARZa4j/a+aFZssZLtI7qvBJO1Wubt7RN8WEiY3XDFuGKKwSubLF6CcEv2D7F2vcNes0eUUzHcCRpAKI9Dme1lTX6Xa44eWtGoI6mZlRreuMhF6GTSM=
file: /tmp/build/cmakespark.zip
overwrite: true
on:
tags: true