forked from Embroidermodder/Embroidermodder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 2.45 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
# Travis-CI can't handle fancy shell syntax or some types of one-liners, so keep it simple and don't trust their lint tool to catch many problems.
language:
- c
compiler:
- gcc
before_install:
- export NIGHTLY_HASH=`git ls-remote git://github.com/Embroidermodder/Embroidermodder.git | grep refs/heads/master | cut -f 1`
- sudo apt-get update -qq
install:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && sudo apt-get install git || sudo apt-get install git qt4-qmake libqt4-opengl-dev kdelibs5-dev valgrind'
- git config --global user.email \<\>
- git config --global user.name "Embroidermodder-Travis"
before_script:
- cat /etc/lsb-release
- uname -a
script:
# Do only a basic build for pull requests, otherwise build for all platforms
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "" || cd project-files/qmake'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "" || qmake'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "" || make'
# linux64
- PLATFORM=linux64
- cd ~
- git clone https://Embroidermodder-Travis:${NIGHTLY_TOKEN}@github.com/Embroidermodder/travis-${PLATFORM}.git
- cd travis-${PLATFORM}
- git remote rm origin
- git remote add origin https://Embroidermodder-Travis:${NIGHTLY_TOKEN}@github.com/Embroidermodder/travis-${PLATFORM}.git
- git fetch origin
- git checkout master
- git commit --allow-empty -m "https://github.com/Embroidermodder/Embroidermodder/commit/${NIGHTLY_HASH}"
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git push origin master &>/dev/null || echo "" '
# osx64
- PLATFORM=osx64
- cd ~
- git clone https://Embroidermodder-Travis:${NIGHTLY_TOKEN}@github.com/Embroidermodder/travis-${PLATFORM}.git
- cd travis-${PLATFORM}
- git remote rm origin
- git remote add origin https://Embroidermodder-Travis:${NIGHTLY_TOKEN}@github.com/Embroidermodder/travis-${PLATFORM}.git
- git fetch origin
- git checkout master
- git commit --allow-empty -m "https://github.com/Embroidermodder/Embroidermodder/commit/${NIGHTLY_HASH}"
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git push origin master &>/dev/null || echo "" '
env:
global:
- secure: "ays1SwXHQ6+4rLCQKxY6xZ3elWkU4Bw51d3DqOfbcIObmpoKQ2ztq7M4JsHyXKOwk9O9QsBD/bunf/MAJrdk+fS866qfw9pxu9/Sh9EeAq4bB2gHbL7G4hxpvG++ioQ32W5Gu1kEgOOk+3NzUQ6t5erNkhADyJ+E6b1Z7q7i+W4="
notifications:
recipients:
email:
on_success: change
on_failure: always