Skip to content

Commit

Permalink
add TravisCI test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Oct 24, 2020
1 parent ebea187 commit 7e07f16
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .travis.yml
@@ -0,0 +1,38 @@
language: rust
branches:
only:
- master
- stage0
- stage1
- stage2
- stage3
- stage4
- stage5
- stage6
- stage7
- stage8
rust:
- nightly
os: linux
dist: bionic
cache: cargo
before_cache:
# Only cache cargo dependencies, do a clean build for rusty-hermit
- rm -rf $TRAVIS_BUILD_DIR/target
before_install:
- sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
- sudo adduser $USER libvirt
- sudo adduser $USER kvm
- cargo install --git https://github.com/RWTH-OS/ehyve.git
- >
if [ $(egrep -c '(vmx|svm)' /proc/cpuinfo) -eq "0" ]; then
echo "No virtualization possible - ehyve can't run";
exit -1;
fi
jobs:
include:
- name: "Build and Test"
script:
- cargo build -Z build-std=core,alloc --no-default-features --target x86_64-eduos.json
# used to get terminal with new groups permissions while preserving own user
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 $HOME/.cargo/bin/ehyve target/x86_64-eduos/debug/eduos-rs"

0 comments on commit 7e07f16

Please sign in to comment.