From 4bcd35ad286b3685f7ef5a350491ac190cc6d956 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 28 Nov 2022 18:28:44 -0700 Subject: [PATCH] Overhaul CI * Update FreeBSD CI image. 11.2 is EoL. * Test Linux and OSX on Cirrus instead of Travis, which seems dead. * Stop testing on Rust beta. That's probably only useful for crates which make extensive use of newish language features. * Run rustdoc in CI. --- .cirrus.yml | 55 +++++++++++++++++++++++++++++++++++++++++------------ .travis.yml | 9 --------- README.md | 1 - 3 files changed, 43 insertions(+), 22 deletions(-) delete mode 100644 .travis.yml diff --git a/.cirrus.yml b/.cirrus.yml index 0dae36a06..b79a79243 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,19 +1,50 @@ -freebsd_instance: - image: freebsd-11-2-release-amd64 +cargo_cache: + folder: $CARGO_HOME/registry + fingerprint_script: cat Cargo.lock || echo "" + +env: + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings + +test: &TEST + test_script: + - . $HOME/.cargo/env || true + - cargo test + doc_script: + - . $HOME/.cargo/env || true + - cargo doc --no-deps task: - name: cargo test - # Record some info about the test environment - sysinfo_script: - - mount - - df -h - - sysctl hw.model hw.ncpu hw.physmem - - freebsd-version + name: FreeBSD + freebsd_instance: + image: freebsd-12-3-release-amd64 # Install Rust setup_script: - pkg install -y curl - curl https://sh.rustup.rs -sSf --output rustup.sh - sh rustup.sh -y - test_script: - - . $HOME/.cargo/env - - cargo test + << : *TEST + before_cache_script: rm -rf $CARGO_HOME/registry/index + +task: + name: MacOS + env: + TARGET: x86_64-apple-darwin + osx_instance: + image: big-sur-xcode + setup_script: + - curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs + - sh rustup.sh -y + << : *TEST + before_cache_script: rm -rf $CARGO_HOME/registry/index + +task: + matrix: + - name: Linux + container: + image: rust:latest + - name: Linux nightly + container: + image: rustlang/rust:nightly + << : *TEST + before_cache_script: rm -rf $CARGO_HOME/registry/index diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5789dcf12..000000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: rust -sudo: false -rust: - - nightly - - beta - - stable -os: - - linux - - osx diff --git a/README.md b/README.md index ca1616f4e..ac5bd8597 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ xattr ===== -[![Build Status](https://travis-ci.org/Stebalien/xattr.svg?branch=master)](https://travis-ci.org/Stebalien/xattr) [![Build Status](https://api.cirrus-ci.com/github/Stebalien/xattr.svg)](https://cirrus-ci.com/github/Stebalien/xattr) A small library for setting, getting, and listing extended attributes.