加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.cirrus.yml 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
Dung Le 提交于 2020-02-05 10:25 . Fix brew cmake install failing on CI
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:latest
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 || brew upgrade cmake
matrix:
- name: test (macOS)
install_rust_script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化