forked from levex/cgroups-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (42 loc) · 1.47 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
42
43
44
language: rust
matrix:
include:
- name: Xenial-stable
os: linux
dist: xenial # 16.04
rust: stable
- name: Xenial-beta
os: linux
dist: xenial # 16.04
rust: beta
- name: Xenial-nightly
os: linux
dist: xenial # 16.04
rust: nightly
- name: Xenial-msrv
os: linux
dist: xenial # 16.04
rust: 1.37.0
- name: Bionic-stable
os: linux
dist: bionic # 18.04
rust: stable
- name: Clippy
rust: nightly
script:
- rustup component add clippy || travis_terminate 0
- cargo clippy --tests -- -D clippy::all
script:
- cargo build --verbose
- cargo test --verbose
# must not be executed in parallel
- cargo test --verbose -- --ignored --test-threads=1 add_get_remove_tasks # Cgroup, UnifiedRepr
- cargo test --verbose -- --ignored --test-threads=1 add_get_remove_procs # Cgroup, UnifiedRepr
- cargo test --verbose -- --ignored --test-threads=1 subsystem_stat_throttled # cpu, memory
- cargo test --verbose -- --ignored --test-threads=1 exclusive # cpuset
- cargo test --verbose -- --ignored cpuset::tests::test_subsystem_apply
- cargo test --verbose -- --ignored cpuacct::tests::test_subsystem_stat_updated
- cargo test --verbose -- --ignored pids::tests::test_subsystem_current
# (temporarily) overrides the root cgroup
- cargo test --verbose -- --ignored release_agent # Cgroup
- cargo test --verbose -- --ignored memory_pressure_enabled # cpuset