-
Notifications
You must be signed in to change notification settings - Fork 344
/
.travis.yml
55 lines (42 loc) · 1.26 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
#Author: KangLin([email protected])
#sudo: required
dist: bionic
services:
- xvfb
language: cpp
cache:
- apt
- directories:
- Package
compiler:
- g++
jdk: oraclejdk7
addons:
ssh_known_hosts:
- github.com
env:
jobs:
- BUILD_TARGERT="unix" DOWNLOAD_QT=APT
- BUILD_TARGERT="unix" QT_VERSION_DIR=512 QT_VERSION=5.12.6 DOWNLOAD_QT=FALSE
- BUILD_TARGERT="unix" QT_VERSION_DIR=511 QT_VERSION=5.11.3 DOWNLOAD_QT=FALSE
before_install:
- echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}"
- export DISPLAY=:99.0
- sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev
- cmake --version
install:
- bash ${TRAVIS_BUILD_DIR}/ci/build-install-tools.sh #> /dev/null
before_script:
- source ${TRAVIS_BUILD_DIR}/ci/build_env.sh
script:
# Test qmake
- mkdir ${TRAVIS_BUILD_DIR}/build_qamke
- cd ${TRAVIS_BUILD_DIR}/build_qamke
- ${QT_ROOT}/bin/qmake CONFIG+=Release PRFIEX=`pwd`/install ${TRAVIS_BUILD_DIR}/src
- make install
# Test cmake (deactivated for now)
# - mkdir ${TRAVIS_BUILD_DIR}/build_camke
# - cd ${TRAVIS_BUILD_DIR}/build_camke
# - cmake -DQt5_DIR=${QT_ROOT}/lib/cmake/Qt5 -DCMAKE_INSTALL_PREFIX=`pwd`/install ${TRAVIS_BUILD_DIR}/src
# - cmake --build . --config Release
# - cmake --build . --config Release --target install