forked from Longhanks/qlift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·35 lines (31 loc) · 1.08 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
matrix:
include:
# - os: linux
# dist: trusty
# sudo: required
- os: osx
osx_image: xcode9
notifications:
email: false
before_install:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
sudo add-apt-repository -y ppa:beineri/opt-qt591-trusty;
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get update -y;
sudo apt-get install -y g++-7 cmake clang libicu-dev;
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90;
sudo update-alternatives --set g++ "/usr/bin/g++-7";
sudo apt-get install -y qt59-meta-full;
QT_ENV_SCRIPT=$(find /opt -name 'qt*-env.sh');
source $QT_ENV_SCRIPT;
wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz;
tar xzvf swift-4.0-RELEASE-ubuntu14.04.tar.gz;
export PATH=swift-4.0-RELEASE-ubuntu14.04/usr/bin:$PATH;
export CC=/usr/bin/clang;
export CXX=/usr/bin/clang;
fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew install qt;
fi
script:
- ./buildscript.sh