Skip to content

Commit

Permalink
Overhaul CI
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
asomers committed Nov 29, 2022
1 parent cfc242e commit 4bcd35a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 22 deletions.
55 changes: 43 additions & 12 deletions .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
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion 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.
Expand Down

0 comments on commit 4bcd35a

Please sign in to comment.