-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
109 lines (101 loc) · 3.95 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
language: c++
branches:
except:
- automatic
cache:
directories:
- download
matrix:
include:
- os: linux
dist: bionic
env:
- _BUILD=win32
- _MINGW=mingw32
- _HOST=i686-w64-mingw32
before_install:
- docker pull jpcima/arch-mingw
install:
- container=$(docker run -d -i -t -v /home:/home jpcima/arch-mingw /bin/bash)
- |
cross() {
docker exec -w "$(pwd)" -e "_BUILD=$_BUILD" -e "_MINGW=$_MINGW" -e "_HOST=$_HOST" -i -t "$container" "$@"
}
script:
- cross bash .travis/script-mingw.sh
- cp -drfv bin stone-phaser-"$_BUILD"
- rm -f stone-phaser-"$_BUILD"/README
- install -d release
- zip -9 -r release/stone-phaser-"$_BUILD".zip stone-phaser-"$_BUILD"
- os: linux
dist: bionic
env:
- _BUILD=win64
- _MINGW=mingw64
- _HOST=x86_64-w64-mingw32
before_install:
- docker pull jpcima/arch-mingw
install:
- container=$(docker run -d -i -t -v /home:/home jpcima/arch-mingw /bin/bash)
- |
cross() {
docker exec -w "$(pwd)" -e "_BUILD=$_BUILD" -e "_MINGW=$_MINGW" -e "_HOST=$_HOST" -i -t "$container" "$@"
}
script:
- cross bash .travis/script-mingw.sh
- cp -drfv bin stone-phaser-"$_BUILD"
- rm -f stone-phaser-"$_BUILD"/README
- install -d release
- zip -9 -r release/stone-phaser-"$_BUILD".zip stone-phaser-"$_BUILD"
- os: osx
osx_image: xcode9.2
env:
- _BUILD=macos
script:
- bash .travis/script-macos.sh
- cp -av bin stone-phaser-"$_BUILD"
- rm -f stone-phaser-"$_BUILD"/README
- install -d release
- zip -9 -r release/stone-phaser-"$_BUILD".zip stone-phaser-"$_BUILD"
- os: linux
dist: trusty
env:
- _BITS=64
- _BUILD=linux64
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install checkinstall libcairo2-dev
script:
- bash .travis/script-linux.sh
- cp -drfv bin stone-phaser-"$_BUILD"
- rm -f stone-phaser-"$_BUILD"/README
- install -d release
- zip -9 -r release/stone-phaser-"$_BUILD".zip stone-phaser-"$_BUILD"
- echo "A classic analog phaser effect" > description-pak
- sudo checkinstall --type=debian --install=no --default --pkgname=stone-phaser --pkgversion="`git describe --abbrev=0 | sed 's/^v//'``git log -n 1 --pretty=format:"+%cd~git%h" --date=short master | sed 's/-//g'`" --pkgarch=amd64 --pkgrelease=0jpc1 --pkglicense=BSL-1.0 --pkggroup=sound --maintainer="jp-dev@inbox.ru" --nodoc
- sudo mv -f *.deb release/stone-phaser-"$_BUILD".deb
before_script:
- sed -i~ 's%/usr/local%/usr%g' plugins/*/Makefile
- patch -d dpf -p1 -i "`pwd`"/resources/patch/DPF-bypass.patch
before_deploy:
- |
if test "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false"; then
export TRAVIS_TAG=automatic
git tag -f "$TRAVIS_TAG"
fi
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file: release/*
file_glob: true
prerelease: true
overwrite: true
edge: true
on:
branch: master
env:
global:
secure: Zm4zN4XCJ7dWilM0kS5aze4xiwTPjGXJaGTq9xJ5ohFWyiwwJQCd+DgYlzaHSDgnGprpK8jCx09Ew3R/1LsRG5FAxwZEAqXHe3iKqRWDg8D+JArDBJU6dOlY0sjKbz4KYpY4qRwEY4h1MpHHOWI3Q1UbSMzkSFWIbfmbVFwwUj7A4O5hy4RByZHZPPkbUoIQEjBR4iG+W5tS5vyMPB7XdSdR0I+ogYuEx1HYSTEZZjITvEg3+G388QYKPan+ubZiw699UeWOPWR1HB8fXES0XZZ5b9gzFWya8V2EhLWhaAq29qM2yyG4d0N2Iy/nwhJCgImhiGRybSgy7MLfhqKHi9rfnZ7ebRcMtR2wLrzBdC2u72NuzsbkCAqQisTCgq2rmk+uXF6zwAPn52h7In0uox9kAFoxmp/oGNZYXnvsw+2uzyRIdzfym/fpQpfVryVpNr/ffMmUbjs47GSMBJx4jBi+aoj9uRsUGlod5ugXHKwiayz2Qy97IhWJIEC5Z/EMP/50jintyDC0VwXAj2ZWA5mTm8/WOYMj39mSTPu+kkFJ6/U1SaQOACIPLcj2OxID430B9TNdTXXWTH0H01rTxgT062Kn9ouuPnBXk/xGIDBjZqXf/lLSW8bLYJKcF5yffLAov536JXRmNDYLBqUQOtXgBOzH8lq9+AHfhx3Hlro=
notifications:
irc: "ircs://chat.freenode.net:7070/#librazik"