-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
80 lines (69 loc) · 3.01 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
71
72
73
74
75
76
77
78
79
80
sudo: required
language: cpp
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.8 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.7 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'ppa:beineri/opt-qt562-trusty'
- sourceline: 'ppa:beineri/opt-qt571-trusty'
- sourceline: 'ppa:beineri/opt-qt58-trusty'
- sourceline: 'ppa:presslabs/gitfs'
matrix:
include:
# appimage
- os: linux
install:
script:
- ./scripts/appimage/appimage_recipie.sh
after_success:
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash ./upload.sh ./Chigraph-x86_64.AppImage
# sneak in 1 osx one so we can see it early
- os: osx
osx_image: xcode8.2
env: BUILD_TYPE=Debug
- env: CXX_COMPILER=g++-5 C_COMPILER=gcc-5 BUILD_TYPE=Debug QT_VERSION=562 LLVM_VERSION=3.7 PACKAGES='g++-5 gcc-5'
- env: CXX_COMPILER=g++-5 C_COMPILER=gcc-5 BUILD_TYPE=Release QT_VERSION=571 LLVM_VERSION=3.8 PACKAGES='g++-5 gcc-5'
- env: CXX_COMPILER=g++-6 C_COMPILER=gcc-6 BUILD_TYPE=Debug QT_VERSION=58 LLVM_VERSION=3.9 PACKAGES='g++-6 gcc-6'
- env: CXX_COMPILER=g++-6 C_COMPILER=gcc-6 BUILD_TYPE=Release QT_VERSION=58 LLVM_VERSION=4.0 PACKAGES='g++-6 gcc-6'
- os: osx
osx_image: xcode8.2
env: BUILD_TYPE=Release
- os: osx
osx_image: xcode8.1
env: BUILD_TYPE=Debug
- os: osx
osx_image: xcode8.1
env: BUILD_TYPE=Release
- os: osx
osx_image: xcode8
env: BUILD_TYPE=Debug
- os: osx
osx_image: xcode8
env: BUILD_TYPE=Release
# Disabled until bottles are available
# for LLVM and KF5.
# - os: osx
# osx_image: xcode7.3
# env: BUILD_TYPE=Debug
# - os: osx
# osx_image: xcode7.3
# env: BUILD_TYPE=Release
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
install:
- 'if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update && sudo apt-get install $PACKAGES llvm-${LLVM_VERSION}-dev libclang-${LLVM_VERSION}-dev libclang-common-${LLVM_VERSION}-dev libgit2 qt${QT_VERSION:0:2}base qt${QT_VERSION:0:2}script qt${QT_VERSION:0:2}declarative qt${QT_VERSION:0:2}tools qt${QT_VERSION:0:2}x11extras qt${QT_VERSION:0:2}svg ninja-build libedit-dev libxcb-keysyms1-dev libxml2-utils libudev-dev texinfo build-essential && source /opt/qt${QT_VERSION:0:2}/bin/qt${QT_VERSION:0:2}-env.sh; fi'
- ./.travis/install.sh
script:
- ./.travis/build.sh