forked from PSI-Rockin/CorgiDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 1.44 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
language: cpp
matrix:
include:
- os: linux
env: DEPLOY_FILE=corgids-linux.zip
- os: osx
env: DEPLOY_FILE=corgids-mac.zip
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link qt5 --force; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qt5-default qttools5-dev-tools; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5; fi
script:
- cd CorgiDS
- qmake CorgiDS.pro
- make
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then macdeployqt CorgiDS.app; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo cp $TRAVIS_BUILD_DIR/LICENSE .; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then zip -r corgids-mac.zip CorgiDS.app LICENSE; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then zip corgids-linux.zip CorgiDS $TRAVIS_BUILD_DIR/LICENSE; fi
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: $DEPLOY_FILE
skip_cleanup: true
on:
tags: true
all_branches: true