Skip to content

Commit

Permalink
Adds VM building.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcr committed Nov 9, 2015
1 parent f64d004 commit 0398792
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 0398792

Please sign in to comment.