forked from neundorf/CuteCom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (42 loc) · 1.39 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
language: cpp
env:
- CONFIG=Release
matrix:
include:
# Linux, GCC 5.1
# Qt 3.9.3 : https://launchpad.net/~beineri/+archive/ubuntu/opt-qt593-trusty
- os: linux
env: COMPILER_C=gcc-5 COMPILER_CXX=g++-5 USE_CUDA="false" CMAKE_OPTIONS="-DUSER_PATH_QT=~/opt/qt59"
compiler: g++
addons:
apt:
packages:
- g++-5
- qt59base
- qt59svg
- qt59tools
- qt59serialport
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:beineri/opt-qt593-trusty'
install:
# Setup default versions and override compiler if needed
- if [[ "${LLVM_VERSION}" == "default" ]]; then LLVM_VERSION=3.9.0; fi
# Install a recent CMake
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.0-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
export CC=${COMPILER_C} CXX=${COMPILER_CXX}
source /opt/qt59/bin/qt59-env.sh
fi
script:
- cd ${TRAVIS_BUILD_DIR}
- |
mkdir -p build
cd build
cmake ${CMAKE_OPTIONS} -DCMAKE_BUILD_TYPE=$CONFIG -DENABLE_TRAVIS_CI=ON ..
- make -j 3