Skip to content

Commit 1633559

Browse files
committed
Add CI via Cirrus-ci.org
1 parent c23fcaa commit 1633559

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.cirrus.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
freebsd_instance:
2+
image: freebsd-11-2-release-amd64
3+
4+
task:
5+
name: cargo test
6+
# Record some info about the test environment
7+
sysinfo_script:
8+
- mount
9+
- df -h
10+
- sysctl hw.model hw.ncpu hw.physmem
11+
- freebsd-version
12+
# Install Rust
13+
setup_script:
14+
- pkg install -y curl
15+
- curl https://sh.rustup.rs -sSf --output rustup.sh
16+
- sh rustup.sh -y
17+
# In 11.2, aio on ufs is considered unsafe
18+
- sysctl vfs.aio.enable_unsafe=1
19+
test_script:
20+
- . $HOME/.cargo/env
21+
- cargo test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
A library for integrating file I/O with [tokio]. File I/O can be seamlessly
44
mixed with all other Future types within the Tokio reactor.
55

6+
[![Build Status](https://api.cirrus-ci.com/github/asomers/tokio-file.svg)](https://cirrus-ci.com/github/asomers/tokio-file)
7+
68
[tokio]: https://github.com/tokio-rs/tokio-core
79

810
```toml

0 commit comments

Comments
 (0)