-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (82 loc) · 1.91 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
language: cpp
matrix:
include:
- os: linux
compiler: clang
addons:
apt:
packages:
- xorg-dev
- libopus-dev
- libasound2-dev
- pulseaudio
- libtheora-dev
- libv4l-dev
env:
- PLATFORM_NAME=linux64
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- xorg-dev
- libopus-dev
- libasound2-dev
- pulseaudio
- libtheora-dev
- libv4l-dev
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- os: linux
compiler: clang
addons:
apt:
packages:
- g++-multilib
- libc6-dev-i386
- libgl1-mesa-dev:i386
- libxrandr-dev:i386
- libxcursor-dev:i386
- libxinerama-dev:i386
- libxxf86vm-dev:i386
- libopus-dev:i386
- libasound2-dev:i386
- pulseaudio:i386
- libtheora-dev:i386
- libv4l-dev:i386
env:
- PLATFORM_NAME=linux32
- PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/
- CMAKE_PREFIX_PATH=/usr/lib/i386-linux-gnu
- CFLAGS=-m32
- CXXFLAGS=-m32
- LIB_CFLAGS=-m32
- LDFLAGS=-L/usr/lib32
before_install:
- eval "${MATRIX_EVAL}"
before_script:
- mkdir build
- cd build
- cmake ..
script: make
before_deploy:
- export ARTEFACT_NAME=veek-$PLATFORM_NAME-$TRAVIS_TAG
- tar -cf $ARTEFACT_NAME.tar veek server
- gzip $ARTEFACT_NAME.tar
deploy:
provider: releases
api_key: $GITHUB_AUTH_TOKEN
file: $ARTEFACT_NAME.tar.gz
skip_cleanup: true
name: Veek $TRAVIS_TAG
prerelease: true
on:
condition: $CC = clang
tags: true
notifications:
email:
on_success: never
on_failure: change