forked from hermit-os/uhyve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (36 loc) · 1.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: rust
rust:
- nightly
os: linux
dist: bionic
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
install:
- git clone https://github.com/hermitcore/rusty-hermit.git
- cd rusty-hermit && echo "rusty-hermit at commit $(git rev-parse HEAD)" && cd ..
- rustc --version
- cargo --version
jobs:
include:
- stage: Test
script:
- cargo build
- cd rusty-hermit
- cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit
- cd ..
# used to get terminal with new groups permissions while preserving own user
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 target/debug/uhyve rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo"
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 HERMIT_CPUS=2 target/debug/uhyve rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo"
-
script:
- cargo build --release
- cd rusty-hermit
- cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit --release
- cd ..
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 target/release/uhyve rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo"
- sudo -E sudo -u $USER -E bash -c "HERMIT_VERBOSE=1 HERMIT_CPUS=2 target/release/uhyve rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo"