From c4e4c3efae1682c5e053b8b2587227dbe8c5c6f6 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Sat, 26 Nov 2016 04:49:49 +0100 Subject: [PATCH] travis-ci: turn on cache for cross-compiler Added cross-compiler to $PATH in continuous-build.sh and enabled sudo in .travis.yml. NOTES: - travis is unable to update submodules pointing to commits out of their master branch, so if you push to devtools, you need to push into master branch or your build will be broken - travis caches conflicts with submodule managements, so we use tmp/toolchain instead of hacking/cross/toolchain in .travis.yml and continuous-build.sh will mv binaries as required. --- .travis.yml | 15 +++++++++++++-- hacking | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f883930..2f205b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,17 @@ language: c -install: -- git submodule init +git: + submodules: false +sudo: required +dist: trusty +cache: + timeout: 1200 + directories: + - tmp/toolchain/ +before_install: +- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y +- sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable -y +- sudo apt-get update +- sudo apt-get install -y --force-yes $CC rc golang build-essential bison qemu-system - git submodule update --init --recursive --remote script: - ./hacking/continuous-build.sh diff --git a/hacking b/hacking index 8bcf5fe..dc7ca89 160000 --- a/hacking +++ b/hacking @@ -1 +1 @@ -Subproject commit 8bcf5fe6de83941370260cf8315cd50e5c2e63d7 +Subproject commit dc7ca89d09380789418b98dee5ceef06a3a9120e