Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ go:
- 1.7

env:
- TARGET=amd64
- TARGET=arm64
- TARGET=amd64 GIMME_ARCH=amd64
- TARGET=arm64 GIMME_ARCH=arm64 GIMME_CGO_ENABLED=1

addons:
apt:
Expand All @@ -28,16 +28,24 @@ addons:
install:
-

# Build host and fly to ensure we build stage1 init. We don't build everything
# to avoid downloading large images.
script:
# Build host and fly to ensure we build stage1 init. We don't build everything
# to avoid downloading large images.
- if [ "${TARGET}" == "amd64" ]; then
./autogen.sh;
./configure --with-stage1-flavors=host,fly --enable-tpm=auto;
make unit-check manpages bash-completion;
elif [ "${TARGET}" == "arm64" ]; then
eval "$(GIMME_ARCH=${TARGET} GIMME_CGO_ENABLED=1 ./gimme.local ${TRAVIS_GO_VERSION})";
./autogen.sh;
./configure --host=aarch64-linux-gnu --with-stage1-flavors=host,fly --enable-tpm=auto;
make V=2;
fi
- 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
Loading