forked from xi-editor/xi-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
43 lines (40 loc) · 1.58 KB
/
.cirrus.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
env:
CARGO_HOME: /tmp/cargo
task:
matrix:
- install_cmake_script: apt-get update && apt-get install -y cmake
matrix:
- name: test (linux)
container:
image: rust:1.31.0
cpu: 4
memory: 8G
rustfmt_script: rustup component add rustfmt-preview && cd rust && cargo fmt --all -- --check
clippy_script: rustup component add clippy-preview && cd rust && cargo clippy --all -- -D warnings
- name: test (linux nightly)
allow_failures: true
container:
image: rustlang/rust:nightly
cpu: 4
memory: 8G
- osx_instance:
image: high-sierra-xcode-9.4.1
env:
PATH: $PATH:$CARGO_HOME/bin
install_cmake_script: brew install cmake
matrix:
- name: test (macOS)
install_rust_script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.31.0
rustfmt_script: rustup component add rustfmt-preview && cd rust && cargo fmt --all -- --check
clippy_script: rustup component add clippy-preview && cd rust && cargo clippy --all -- -D warnings
- name: test (macOS nightly)
allow_failures: true
install_rust_script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat rust/Cargo.lock
build_script: cd rust && cargo build --verbose --all --jobs 4
test_script:
- cd rust
- cargo test --verbose --all --jobs 4
before_cache_script: rm -rf $CARGO_HOME/registry/index