forked from fortanix/rust-sgx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (40 loc) · 1.99 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
38
39
40
41
branches:
only:
# This is where pull requests from "bors r+" are built.
- staging
# This is where pull requests from "bors try" are built.
- trying
# Not really necessary, just to get a green badge on “master”
- master
language: rust
matrix:
include:
- os: linux
dist: xenial
addons:
apt:
sources:
- sourceline: 'deb https://download.01.org/intel-sgx/sgx_repo/ubuntu xenial main'
key_url: 'https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key'
packages:
- protobuf-compiler
- libsgx-dcap-ql-dev
- libclang-3.8-dev
- musl-tools
rust:
- nightly
env:
- RUST_BACKTRACE=1 LLVM_CONFIG_PATH=llvm-3.8-config
before_script:
- rustup target add x86_64-fortanix-unknown-sgx x86_64-unknown-linux-musl
script:
- cargo test --verbose --locked --all --exclude sgxs-loaders && [ "$(echo $(nm -D target/debug/sgx-detect|grep __vdso_sgx_enter_enclave))" = "w __vdso_sgx_enter_enclave" ]
- cargo test --verbose --locked -p sgx-isa --features sgxstd --target x86_64-fortanix-unknown-sgx --no-run
- cargo test --verbose --locked -p sgxs-tools --features pe2sgxs --bin isgx-pe2sgx
- cargo test --verbose --locked -p dcap-ql --features link
- cargo test --verbose --locked -p dcap-ql --features verify
- cargo build --verbose --locked -p aesm-client --target=x86_64-fortanix-unknown-sgx
- cargo build --verbose --locked -p aesm-client --target=x86_64-fortanix-unknown-sgx --features sgx-isa/sgxstd
# NOTE: linking glibc version of OpenSSL with musl binary.
# Unlikely to produce a working binary, but at least the build succeeds.
- mkdir -p /tmp/muslinclude && ln -sf /usr/include/x86_64-linux-gnu/openssl /tmp/muslinclude/openssl && PKG_CONFIG_ALLOW_CROSS=1 CFLAGS=-I/tmp/muslinclude cargo build --locked -p fortanix-sgx-tools --target x86_64-unknown-linux-musl