-
Notifications
You must be signed in to change notification settings - Fork 63
/
.travis.yml
42 lines (36 loc) · 1.04 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
language: generic
## Force usage of "Ubuntu Xenial" as on older versions
## program "realpath" is not working for some reason.
os: linux
dist: xenial
services: docker
sudo: required
## Build environment is used as submodule so let
## submodules will be checked out too.
git:
submodules: true
## Enable caching for build directory.
## Note that "build-data" should be mounted in docker
## container as /data. (See "scripts/travis-ci-build.sh")
cache:
directories:
- build-data
## Split per-architecture builds into separate jobs.
env:
matrix:
- TERMUX_ARCH=aarch64
CACHE_NAME=aarch64-data
- TERMUX_ARCH=arm
CACHE_NAME=arm-data
- TERMUX_ARCH=i686
CACHE_NAME=i686-data
- TERMUX_ARCH=x86_64
CACHE_NAME=x86_64-data
## Copy our packages to the build environment.
before_script:
- mkdir -p ./build-data
- cp -a ./packages/* ./termux-packages/packages/
- cp ./scripts/setup-build-environment.sh ./termux-packages/
## Execute build-dispatching script.
script:
- ./scripts/travis-ci-build.sh "$TERMUX_ARCH"