This repository has been archived by the owner on May 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
62 lines (54 loc) · 2 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
dist: xenial
language: cpp
matrix:
fast_finish: false
include:
- os: osx
env:
- PLATFORM=osx
- BACKEND=multimedia
compiler: clang
- os: linux
env:
- PLATFORM=linux
- BACKEND=mpv
compiler: gcc
#- os: linux
# env:
# - PLATFORM=android
# - BACKEND=multimedia
# compiler: gcc
cache:
apt: true
directories:
- $HOME/Library/Caches/Homebrew
- $HOME/mpv
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:apt-fast/stable && sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get -y -qq install apt-fast; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-fast -y install g++-7 > /dev/null; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew --prefix qt; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip2 install dmgbuild; fi
install:
- ci/prepare_$PLATFORM.sh
- source ci/$PLATFORM.env
- cd $TRAVIS_BUILD_DIR
script:
- $QTDIR/bin/qmake orion.pro CONFIG+=$BACKEND
- make -j2
- mkdir -p artifacts && ci/deploy_$PLATFORM.sh $TRAVIS_BUILD_DIR/artifacts
deploy:
- provider: releases
# To use this, create a Github token with the "public_repo" permission, and create an env var GITHUB_API_KEY in the Travis' project settings, making sure "Display value in build log" is set to OFF
api_key: '$GITHUB_API_KEY'
file:
- 'artifacts/orion-$PLATFORM-$TRAVIS_TAG.dmg'
- 'artifacts/orion-$PLATFORM-$TRAVIS_TAG.AppImage'
#- 'artifacts/orion-$PLATFORM-$TRAVIS_TAG.apk'
skip_cleanup: true
prerelease: true
on:
tags: true
all_branches: true