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 28f9ee4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 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 @@ -53,10 +53,20 @@ script:
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 /tmp/ramdisk/v2
pushd /tmp/ramdisk/v2
make -j64 || make -j64 || make -j64 || make -j64 || make -j64 V=s
popd
mv /tmp/ramdisk/v2 ~/v2
cp -rf ~/openwrt-tessel /tmp/ramdisk/vm
pushd /tmp/ramdisk/vm
git submodule update --init --recursive
make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm V=s
popd
mv /tmp/ramdisk/vm ~/vm
'
#after_script:
Expand Down
1 change: 1 addition & 0 deletions target/vm/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ CONFIG_TARGET_x86_generic=y
CONFIG_TARGET_x86_generic_Generic=y
CONFIG_TARGET_ROOTFS_EXT4FS=y
CONFIG_VDI_IMAGES=y
CONFIG_TARGET_ROOTFS_PARTSIZE=96

PACKAGES += kmod-usb-ohci-pci

0 comments on commit 28f9ee4

Please sign in to comment.