Skip to content

Commit 23a92ce

Browse files
committed
Merge branch 'add-travis'
2 parents 290fc79 + 191c75a commit 23a92ce

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: rust
2+
cache: cargo
3+
rust:
4+
- nightly
5+
- stable
6+
- beta
7+
os:
8+
- osx
9+
10+
11+
before_script:
12+
- rustup component add rustfmt-preview
13+
- rustfmt --version
14+
15+
script:
16+
- cargo build --verbose
17+
- cargo test --verbose
18+
- if [ "${TRAVIS_RUST_VERSION}" = "nightly" ]; then
19+
cargo fmt -- --write-mode=diff;
20+
else
21+
echo "Not checking formatting on this build";
22+
fi
23+
24+
notifications:
25+
email:
26+
on_success: never
27+
on_failure: never

rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
required_version = "0.3.8"
2+
13
# Activation of features, almost objectively better ;)
24
reorder_imports = true
35
reorder_imported_names = true
@@ -9,3 +11,4 @@ wrap_comments = true
911

1012
# Heavily subjective style choices
1113
comment_width = 100
14+
blank_lines_upper_bound = 2

0 commit comments

Comments
 (0)