forked from jtunnicl/GRATE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (49 loc) · 2.03 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
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: xenial
- os: osx
addons:
homebrew:
packages:
- cmake
- qt
update: true
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:george-edison55/cmake-3.x -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.11.0-xenial -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -q; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install cmake gcc-9 g++-9 qt511-meta-minimal libgl1-mesa-dev -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt511/bin/qt511-env.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then qmake --version; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake --version; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC=gcc-9; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=g++-9; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH="/usr/local/opt/qt/bin:$PATH"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig"; fi
- ${CXX} --version
install:
- mkdir build && cd build
- cmake ..
- make
- pwd
script:
- echo "not running any tests"
# - ctest --output-on-failure
before_deploy:
- pwd
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mkdir -p Grate.app/Contents/PlugIns/platforms; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cp "$(brew --prefix)/opt/qt/plugins/platforms/libqcocoa.dylib" Grate.app/Contents/PlugIns/platforms/; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then macdeployqt Grate.app -dmg; fi
- ls -l
deploy:
provider: releases
api_key: $RELEASES_TOKEN
file: Grate.dmg
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = osx