forked from residualvm/residualvm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
120 lines (115 loc) · 3.18 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
120
language:
- cpp
sudo: required
branches:
only:
- master
compiler:
- clang
matrix:
include:
- os: linux
dist: xenial
services:
- docker
before_install:
- docker pull scummvm/buildbot-windows
env:
- CROSS_HOST=i686-w64-mingw32
script:
- mkdir -m 777 build
- >-
docker run -v $(pwd)/build:/buildbot/build -v $(pwd):/buildbot/code scummvm/buildbot-windows
/bin/bash -c
"export PATH=/usr/$CROSS_HOST/bin:$PATH;
cd /buildbot/build &&
../code/configure --enable-all-engines --host=$CROSS_HOST &&
make -j4"
before_deploy:
- mkdir artifacts && cp -r build/residualvm.exe artifacts
- os: linux
dist: xenial
addons:
apt:
packages:
- debhelper
- dpkg-dev
- fakeroot
- g++
- make
- libsdl2-dev
- libjpeg-turbo8-dev
- libmpeg2-4-dev
- libogg-dev
- libvorbis-dev
- libgl1-mesa-dev
- libmad0-dev
- libpng-dev
- libglew-dev
- libfreetype6-dev
- zlib1g-dev
script:
- dists/debian/prepare
- dpkg-buildpackage -b -nc -uc
before_deploy:
- mkdir artifacts && cp ../*deb artifacts
- os: osx
addons:
homebrew:
update: true
packages:
- sdl2
- sdl2_net
- libvorbis
- jpeg-turbo
- mad
- libmpeg2
- glew
- bzip2
- zlib
- libiconv
- freetype
install:
- cp -v /usr/local/Cellar/{bzip2,libiconv,zlib}/*/lib/*.a /usr/local/lib
script:
- ./configure --enable-all-engines && make -j4
before_deploy:
- make osxsnap
- mkdir artifacts && cp -r ResidualVM-snapshot.dmg artifacts
- os: linux
name: "Android (ARM64 & ARMv7)"
language: android
android:
components:
- tools
- platform-tools
- build-tools
- android-26
env:
- ANDROID_LEVEL=26
- ANDROID_SDK=${ANDROID_HOME}
- ANDROID_NDK=${ANDROID_HOME}/ndk-bundle
before_install:
- mkdir -p $ANDROID_HOME/licenses
- echo -e "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > $ANDROID_HOME/licenses/android-sdk-license
install:
- echo y | $ANDROID_HOME/tools/bin/sdkmanager ndk-bundle >/dev/null 2>&1
- CROSS_HOST=aarch64-linux-android ./.travis/android-build-deps
- CROSS_HOST=armv7a-linux-androideabi ./.travis/android-build-deps
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $TRAVIS_BUILD_DIR/dependencies
script: .travis/android-build
before_deploy:
- mkdir artifacts && cp build/android/build/outputs/apk/release/ResidualVM-release*.apk artifacts
deploy:
provider: script
script: .travis/deploy.sh
skip_cleanup: true
on:
branch: master