forked from gz/rust-driverkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 853 Bytes
/
.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
42
43
44
45
46
47
48
49
dist: trusty
language: rust
services: docker
sudo: required
env:
global:
- CRATE_NAME=driverkit
- RUSTFLAGS='-D warnings'
matrix:
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
rust: nightly
before_install:
- set -e
- rustup self update
install:
- sh ci/install.sh
- source ~/.cargo/env || true
- rustup component add rustfmt-preview --toolchain nightly
before_script:
- sudo sysctl -w vm.nr_hugepages=5
- sudo mkdir -p /mnt/huge
- sudo mount -t hugetlbfs nodev /mnt/huge
script:
- bash ci/script.sh
- cargo +nightly fmt --version
- cargo +nightly fmt --package driverkit -- --check
after_script: set +e
branches:
except:
- staging.tmp
- trying.tmp
notifications:
email:
on_success: never