-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
119 lines (111 loc) · 4.26 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
110
111
112
113
114
115
116
117
118
119
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 archlinux
install:
- container=$(docker run -d -i -t -v /home:/home archlinux /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 string-machine-"$_BUILD"
- rm -f string-machine-"$_BUILD"/README
- install -d release
- zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD"
- os: linux
dist: bionic
env:
- _BUILD=win64
- _MINGW=mingw64
- _HOST=x86_64-w64-mingw32
before_install:
- docker pull archlinux
install:
- container=$(docker run -d -i -t -v /home:/home archlinux /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 string-machine-"$_BUILD"
- rm -f string-machine-"$_BUILD"/README
- install -d release
- zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD"
- os: osx
osx_image: xcode9.2
env:
- _BUILD=macos
script:
- bash .travis/script-macos.sh
- cp -av bin string-machine-"$_BUILD"
- rm -f string-machine-"$_BUILD"/README
- install -d release
- zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD"
- os: linux
dist: xenial
env:
- _BITS=64
- _BUILD=linux64
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install checkinstall libcairo2-dev mesa-common-dev
script:
- bash .travis/script-linux.sh
- cp -drfv bin string-machine-"$_BUILD"
- rm -f string-machine-"$_BUILD"/README
- install -d release
- zip -9 -r release/string-machine-"$_BUILD".zip string-machine-"$_BUILD"
- echo "Digital model of electronic string ensemble instrument" > description-pak
- |
if test "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false"; then
sudo checkinstall --type=debian --install=no --default --pkgname=string-machine --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="[email protected]" --nodoc
sudo mv -f *.deb release/string-machine-"$_BUILD".deb
fi
before_script:
- sed -i~ 's%/usr/local%/usr%g' plugins/*/Makefile
before_deploy:
- |
if test "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false"; then
export TRAVIS_TAG=automatic
git tag -f "$TRAVIS_TAG"
fi
- |
if test "$_BUILD" = "macos"; then
gem uninstall openssl --all --force
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: BzrfWX+zI9Ww+T1Dj1k04tomPVoMucUYwIOeaG3NkwL3CDEo98/s3GDSGRa6CQMRz9R2oT/ljXecNShb0jaueToTPA+MpbRg93WjhbeETyc0tLmttIswHjwsAZ8gDx1gfhFJ5cdxxpmoWGmT+mO5f72HxH5PT1icTdnmPFbxAq6abSR9VMV5+hVNwS9OdMTVxow4JLbVwx9w//JmWDpWP752SiNayPAoMZp5pELszqPsUawZH+AMY3X/1m69T6MU+wsWX5pdChHOlSl6jWBobetd3tojOrCamV8XNQsyeu8WMhd9hjIJU786AzwcY2S2XXpR1Qjrngo8L0mCSbDs0szwJtPgec/R2myxdJV/u2+howqNbhBuKzbJwsEL4kqhCEKvasuL9I2rG2tGc3p7Z/2YFNiisZW4TcEC23Eu02aAR3Emv/2JooIhzJfm9X4nMCz/tTpvOKrPltgiI9dQiH+JQ/53QCpGYFhlBYkmnngICrdpum9U1yjyHL4tL/a++UYXkBaezC0eU8TjtNtVR2l25Tjc5IQsiGHFiwK5IYe0yDeTEKd+EGgxfubtWpAdL4oKjRBDzaaaMaTAH5w+/8lT1+E6E3USVOWDA+RHKnAUTx0uLUuGWCojHcJ+PilrMKelaY4YDuGmFd7zfiTuqMM7cK6KYIrgLGz7cExEgTc=
notifications:
irc:
template:
- "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
channels:
- "ircs://chat.freenode.net:7070/#librazik"