From 039879299dff117f37438649a264e939ac1a4a13 Mon Sep 17 00:00:00 2001 From: Tim Cameron Ryan Date: Sun, 8 Nov 2015 22:46:56 -0800 Subject: [PATCH] Adds VM building. --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9211940..e042fbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ before_install: install: - yes | gcloud compute instances delete travis-instance --zone us-central1-b || true -- gcloud compute instances create travis-instance --zone us-central1-b --image ubuntu-14-04 --machine-type n1-highcpu-32 --boot-disk-size 64 --scopes compute-rw +- gcloud compute instances create travis-instance --zone us-central1-b --image ubuntu-14-04 --machine-type n1-highcpu-32 --boot-disk-size 200 --scopes compute-rw - | while [ 1 ]; do gcloud compute ssh travis-instance --zone us-central1-b --command 'exit 0' -- -o ConnectTimeout=10 > /dev/null 2>&1 && break @@ -43,20 +43,20 @@ script: gcloud compute ssh travis-instance --zone us-central1-b --command ' set -e set -x - - sudo mkdir /tmp/ramdisk - sudo chmod 777 /tmp/ramdisk - sudo mount -t tmpfs -o size=14G tmpfs /tmp/ramdisk/ sudo apt-get update -qq sudo apt-get install -y software-properties-common sudo apt-add-repository -y ppa:terry.guo/gcc-arm-embedded sudo apt-get update -qq sudo apt-get install -y build-essential git-core g++ subversion libncurses-dev libssl-dev unzip gettext gcc-arm-none-eabi - cp -rf ~/openwrt-tessel /tmp/ramdisk/openwrt-tessel - cd /tmp/ramdisk/openwrt-tessel + + cd ~/openwrt-tessel + git submodule update --init --recursive + cp -rf ~/openwrt-tessel ~/vm + pushd ~/vm git submodule update --init --recursive - make -j64 || make -j64 || make -j64 || make -j64 || make -j64 V=s + make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm V=s + popd ' #after_script: