forked from rkt/rkt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 loc) · 1018 Bytes
/
.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
# Configures rkt tests at Travis CI (https://travis-ci.org).
language: go
sudo: required
dist: trusty
go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
env:
- TARGET=amd64 GIMME_ARCH=amd64
- TARGET=arm64 GIMME_ARCH=arm64 GIMME_CGO_ENABLED=1
addons:
apt:
packages:
- cpio
- realpath
- squashfs-tools
- build-essential
- libacl1-dev
- libsystemd-journal-dev
- gcc-aarch64-linux-gnu
- libc6-dev-arm64-cross
install:
-
# Build host and fly to ensure we build stage1 init. We don't build everything
# to avoid downloading large images.
script:
- sh autogen.sh
- test "${TARGET}" = "amd64"
&& export CONFIGURE_ARCH="x86_64"
&& export CONFIGURE_MAKE="unit-check manpages bash-completion"
|| true
- test "${TARGET}" = "arm64"
&& export CONFIGURE_ARCH="aarch64-linux-gnu"
&& export CONFIGURE_MAKE="V=2"
|| true
- sh configure
--host=$CONFIGURE_ARCH
--with-stage1-flavors=host,fly
--enable-tpm=auto
- make $CONFIGURE_MAKE