Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ran rustfmt on everything + updated Travis config to check formatting…
… and automatically push test images.
- Loading branch information
1 parent
db353a4
commit b1bf9e7
Showing
19 changed files
with
672 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
language: rust | ||
cache: cargo | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
matrix: | ||
allow_failures: | ||
include: | ||
- rust: nightly | ||
|
||
env: RUSTFMT=0.3.1 | ||
install: | ||
- export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH | ||
- if [[ `rustfmt --version` != $RUSTFMT* ]] ; then travis_wait cargo install --force rustfmt-nightly --vers $RUSTFMT; fi | ||
- export PATH="$PATH:$HOME/.cargo/bin" | ||
script: | ||
- rustfmt --write-mode=diff src/lib.rs | ||
- cargo build | ||
- cargo test | ||
before_script: | ||
- sudo chmod -R 0777 /home/travis/build/kosinix/raster/tests/ | ||
- sudo chmod -R 0777 /home/travis/build/kosinix/raster/tests/ | ||
script: | ||
- cargo build | ||
- cargo test | ||
- cargo doc | ||
after_success: | ||
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy-docs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit -o nounset | ||
|
||
: ${TRAVIS:?"This should only be run on Travis CI."} | ||
|
||
rev=$(git rev-parse --short HEAD) | ||
|
||
git init | ||
git config user.name "Francesca Sunshine" | ||
git config user.email "francesca@comfy.love" | ||
|
||
git remote add upstream "https://$GH_TOKEN@github.com/kosinix/raster.git" | ||
git fetch upstream | ||
git reset upstream/gh-pages | ||
|
||
rm -rf in out docs | ||
mv tests/in in | ||
mv tests/out out | ||
rm out/.gitignore | ||
mv target/doc docs | ||
|
||
git add -A in out docs | ||
git commit -m "Updated docs for ${rev}" | ||
git push --force --quiet upstream HEAD:gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use_try_shorthand = true | ||
|
||
# This was merged, but doesn't seem to work? https://github.com/rust-lang-nursery/rustfmt/pull/1869 | ||
# error_on_line_overflow_comments = false | ||
error_on_line_overflow = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.