Skip to content

Commit 0398792

Browse files
committed
Adds VM building.
1 parent f64d004 commit 0398792

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ before_install:
2828

2929
install:
3030
- yes | gcloud compute instances delete travis-instance --zone us-central1-b || true
31-
- 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
31+
- 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
3232
- |
3333
while [ 1 ]; do
3434
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:
4343
gcloud compute ssh travis-instance --zone us-central1-b --command '
4444
set -e
4545
set -x
46-
47-
sudo mkdir /tmp/ramdisk
48-
sudo chmod 777 /tmp/ramdisk
49-
sudo mount -t tmpfs -o size=14G tmpfs /tmp/ramdisk/
5046
5147
sudo apt-get update -qq
5248
sudo apt-get install -y software-properties-common
5349
sudo apt-add-repository -y ppa:terry.guo/gcc-arm-embedded
5450
sudo apt-get update -qq
5551
sudo apt-get install -y build-essential git-core g++ subversion libncurses-dev libssl-dev unzip gettext gcc-arm-none-eabi
56-
cp -rf ~/openwrt-tessel /tmp/ramdisk/openwrt-tessel
57-
cd /tmp/ramdisk/openwrt-tessel
52+
53+
cd ~/openwrt-tessel
54+
git submodule update --init --recursive
55+
cp -rf ~/openwrt-tessel ~/vm
56+
pushd ~/vm
5857
git submodule update --init --recursive
59-
make -j64 || make -j64 || make -j64 || make -j64 || make -j64 V=s
58+
make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm V=s
59+
popd
6060
'
6161
6262
#after_script:

0 commit comments

Comments
 (0)