forked from variar/klogg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
89 lines (78 loc) · 2.55 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
81
82
83
84
85
86
87
88
89
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: xenial
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- SCRIPTS_PATH_EVAL="SCRIPTS_PATH=${TRAVIS_BUILD_DIR}/scripts/linux"
- CPACK_GENERATOR="RPM;DEB"
- UPLOADTOOL_SUFFIX="linux"
addons:
artifacts:
paths:
- ./build/packages
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: ppa:beineri/opt-qt595-xenial
packages:
- g++-8
- mesa-common-dev
- qt59base
- ninja-build
- rpm
- pandoc
- os: osx
compiler: clang
osx_image: xcode10.1
env:
- SCRIPTS_PATH_EVAL="SCRIPTS_PATH=${TRAVIS_BUILD_DIR}/scripts/osx"
- CPACK_GENERATOR="DragNDrop"
- UPLOADTOOL_SUFFIX="osx"
addons:
artifacts:
paths:
- ./build/packages
homebrew:
packages:
- cmake
- ninja
- pandoc
- qt
update: true
env:
global:
- KLOGG_VERSION_EVAL='KLOGG_VERSION=19.11.0.$TRAVIS_BUILD_NUMBER'
- COMMON_CMAKE_OPTS_EVAL='COMMON_CMAKE_OPTS="-G Ninja -DBUILD_NUMBER=$TRAVIS_BUILD_NUMBER -DCMAKE_BUILD_TYPE=Release -DBUILD_DOC=True"'
before_install:
- '[ "$TRAVIS_OS_NAME" != linux ] || eval "${MATRIX_EVAL}"'
- eval "${SCRIPTS_PATH_EVAL}"
install:
- '[ "$TRAVIS_OS_NAME" != osx ] || ${SCRIPTS_PATH}/install_deps.sh'
before_script:
- '[ "$TRAVIS_OS_NAME" != linux ] || source /opt/qt59/bin/qt59-env.sh'
- mkdir build
- cd build
- eval "${COMMON_CMAKE_OPTS_EVAL}"
- eval "${KLOGG_VERSION_EVAL}"
- '[ "$TRAVIS_OS_NAME" != osx ] || cmake ${COMMON_CMAKE_OPTS} -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) ..'
- '[ "$TRAVIS_OS_NAME" != linux ] || cmake ${COMMON_CMAKE_OPTS} -DCMAKE_INSTALL_PREFIX=/usr ..'
script:
- cmake --build .
- ctest --verbose
- '[ "$TRAVIS_OS_NAME" != osx ] || ${SCRIPTS_PATH}/prepare_bundle.sh'
- '[ "$TRAVIS_OS_NAME" != linux ] || VERSION=$KLOGG_VERSION ${SCRIPTS_PATH}/make_appimage.sh'
- cpack --verbose -G "${CPACK_GENERATOR}"
- '[ "$TRAVIS_OS_NAME" != linux ] || cp klogg-$KLOGG_VERSION-x86_64.AppImage packages/klogg-$KLOGG_VERSION-x86_64.AppImage'
after_success:
- ls -lh packages/*
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh packages/*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous.*$)/
- /^v[0-9].+$/