Commit d8c395d3 authored by Stefan Lankes's avatar Stefan Lankes
Browse files
parents aeda7894 25cce81d
Pipeline #282063 passed with stages
in 1 minute and 40 seconds
language: rust
rust:
- nightly
os: linux
dist: bionic
cache:
cargo: true # This caches $HOME/.cargo and $TRAVIS_BUILD_DIR/target (The latter is not used here)
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 cargo-download
- rustup component add rust-src
- rustup component add llvm-tools-preview
- cargo install uhyve
install:
- ls -l
- if [ -d "$HOME/tmp_libhermit-rs" ]; then rm -rf $HOME/tmp_libhermit-rs; fi
- mkdir $HOME/tmp_libhermit-rs
- shopt -s dotglob nullglob && mv ./* $HOME/tmp_libhermit-rs
# If for some reason target exists (due to a bad cache) then delete it.
- if [ -d "$HOME/tmp_libhermit-rs/target" ]; then rm -rf $HOME/tmp_libhermit-rs/target; fi
- git clone https://github.com/hermitcore/rusty-hermit.git
- cd rusty-hermit
- git checkout devel
- echo "rusty-hermit at commit $(git rev-parse HEAD)"
# Ensure that libhermit-rs is empty - This shouldn't be necessary since we don't initialize the submodules
# But let's do it anyway to be safe
- if [ -d "$TRAVIS_BUILD_DIR/rusty-hermit/libhermit-rs" ]; then rm -rf $TRAVIS_BUILD_DIR/rusty-hermit/libhermit-rs; fi
- mkdir $TRAVIS_BUILD_DIR/rusty-hermit/libhermit-rs
- shopt -s dotglob nullglob && mv $HOME/tmp_libhermit-rs/* $TRAVIS_BUILD_DIR/rusty-hermit/libhermit-rs/.
- ls -l --all libhermit-rs
- rustc --version
- cargo --version
- uhyve --version
jobs:
include:
- stage: Test
name: "Test Debug build"
script:
- cd $TRAVIS_BUILD_DIR/rusty-hermit
- cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit
# 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/uhyve target/x86_64-unknown-hermit/debug/rusty_demo"
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 HERMIT_CPUS=2 $HOME/.cargo/bin/uhyve target/x86_64-unknown-hermit/debug/rusty_demo"
- name: "Test Release Build"
script:
- cd $TRAVIS_BUILD_DIR/rusty-hermit
- cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit --release
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 $HOME/.cargo/bin/uhyve target/x86_64-unknown-hermit/release/rusty_demo"
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 HERMIT_CPUS=2 $HOME/.cargo/bin/uhyve target/x86_64-unknown-hermit/release/rusty_demo"
......@@ -3,6 +3,7 @@
# RustyHermit - A Rust-based, lightweight unikernel
[![Build Status](https://git.rwth-aachen.de/acs/public/hermitcore/libhermit-rs/badges/master/pipeline.svg)](https://git.rwth-aachen.de/acs/public/hermitcore/libhermit-rs/pipelines)
[![Build Status](https://travis-ci.com/hermitcore/libhermit-rs.svg?branch=master)](https://travis-ci.com/hermitcore/libhermit-rs)
![Actions Status](https://github.com/hermitcore/libhermit-rs/workflows/Build/badge.svg)
[![License](https://img.shields.io/crates/l/rusty-hermit.svg)](https://img.shields.io/crates/l/rusty-hermit.svg)
[![Slack Status](https://radiant-ridge-95061.herokuapp.com/badge.svg)](https://radiant-ridge-95061.herokuapp.com)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment