Skip to content

Commit 28f9ee4

Browse files
committed
Adds VM building.
1 parent f64d004 commit 28f9ee4

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.travis.yml

Lines changed: 13 additions & 3 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
@@ -53,10 +53,20 @@ script:
5353
sudo apt-add-repository -y ppa:terry.guo/gcc-arm-embedded
5454
sudo apt-get update -qq
5555
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
56+
57+
cd ~/openwrt-tessel
5858
git submodule update --init --recursive
59+
cp -rf ~/openwrt-tessel /tmp/ramdisk/v2
60+
pushd /tmp/ramdisk/v2
5961
make -j64 || make -j64 || make -j64 || make -j64 || make -j64 V=s
62+
popd
63+
mv /tmp/ramdisk/v2 ~/v2
64+
cp -rf ~/openwrt-tessel /tmp/ramdisk/vm
65+
pushd /tmp/ramdisk/vm
66+
git submodule update --init --recursive
67+
make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm V=s
68+
popd
69+
mv /tmp/ramdisk/vm ~/vm
6070
'
6171
6272
#after_script:

target/vm/config.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ CONFIG_TARGET_x86_generic=y
33
CONFIG_TARGET_x86_generic_Generic=y
44
CONFIG_TARGET_ROOTFS_EXT4FS=y
55
CONFIG_VDI_IMAGES=y
6+
CONFIG_TARGET_ROOTFS_PARTSIZE=96
67

78
PACKAGES += kmod-usb-ohci-pci

0 commit comments

Comments
 (0)