forked from myst6re/makoureactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (73 loc) · 2.24 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
language: cpp
os:
- linux
- osx
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
lsb_release -a
&& sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
&& sudo apt-add-repository -y ppa:canonical-qt5-edgers/ubuntu1204-qt5
&& sudo apt-get -qq update
&& sudo apt-get -qq install -y --force-yes g++-4.9 libc6-i386 freeglut3-dev qtbase5-dev
&& export CXX="g++-4.9"
;
else
brew update > /dev/null
&& brew install homebrew/x11/freeglut
&& brew install qt5
&& chmod -R 755 /usr/local/opt/qt5/*
;
fi
before_script:
- if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
QTDIR="/usr/local/opt/qt5"
&& export PATH="$QTDIR/bin:$PATH"
;
fi
- mkdir -p build
- cd build
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
qmake -qt=qt5 -config release ..
;
else
qmake -config release ..
;
fi
script:
- make -j2
before_deploy:
- DEPLOY_DIR="makoureactor-$(git describe --tags)-${TRAVIS_OS_NAME}64"
- export DEPLOY_ARCHIVE="$DEPLOY_DIR.tar.gz"
- mkdir -p "$DEPLOY_DIR"
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
DEPLOY_BINARY="makoureactor.app"
&& cp -r "$DEPLOY_BINARY" "$DEPLOY_DIR"
&& cp ../*.qm "$DEPLOY_DIR/$DEPLOY_BINARY/Contents/MacOS"
&& "$QTDIR/bin/macdeployqt" "$DEPLOY_DIR/$DEPLOY_BINARY"
;
else
cp makoureactor "$DEPLOY_DIR"
&& cp ../*.qm "$DEPLOY_DIR"
;
fi
- tar -czf "$DEPLOY_ARCHIVE" "$DEPLOY_DIR"
deploy:
provider: releases
api_key:
secure: "g4SNxnp5gaEg3KPXOsgEiAW1t1ObzDr+Nm9ZkQBvqpDwM6K5skfUL1FGiBpQeWRiaVYymbY1ukn+rIFH36vJWl1+MK+6YYS4EvLY6o+pgHXzqeiM/NeC4qd2HRzQxDo4T5Ox5tVzTavrDR+fOuo/iMolx/IfnQaJ+m/csTYYdm0="
file: "$DEPLOY_ARCHIVE"
skip_cleanup: true
on:
tags: true
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "lk7jEPh62LhXOWyT5UyGAKPxiskVyIBbHEtbnfKZZil2iJLec1f3+df1ADPajl1Ij2Yp4ZgWWcJsuN/+XkQJjXvgWyW2bi0K9ntrRCU4t3h8blodblaXvpssbz5fj4TzI8HnfBet4NXfLLdAUHBcLOLU01xb+LWaY/4rX2PlKBY="
addons:
coverity_scan:
project:
name: myst6re/makoureactor
description: Final Fantasy VII field archive editor
notification_email: myst6re@gmail.com
build_command: make -j2
branch_pattern: coverity_scan