-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim down the Travis build #83
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,11 @@ rust: | |
- beta | ||
- nightly | ||
|
||
matrix: | ||
include: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is where the fourth build is declared. |
||
- rust: nightly | ||
env: BENCH=1 | ||
|
||
addons: | ||
apt: | ||
packages: | ||
|
@@ -20,27 +25,20 @@ before_script: | |
export PATH=$HOME/.local/bin:$PATH | ||
|
||
script: | ||
# TEMPORARY UNTIL SERDE 0.7 IS RELEASED | ||
- | | ||
mkdir .travis-deps | ||
mkdir .cargo | ||
echo 'paths = ["./.travis-deps/serde"]' > .cargo/config | ||
git clone https://github.com/serde-rs/serde .travis-deps/serde | ||
pushd .travis-deps/serde | ||
git reset --hard origin/master | ||
popd | ||
- | | ||
(cd json && travis-cargo build) && | ||
(cd json && travis-cargo test) && | ||
(cd json_tests && travis-cargo test -- --features with-syntex --no-default-features) && | ||
(cd json_tests && travis-cargo --only nightly test -- features nightly-testing) && | ||
(cd json_tests && travis-cargo --only nightly bench -- features nightly-testing) && | ||
(cd json_tests && travis-cargo --only nightly bench -- --features "nightly-testing with-syntex" --no-default-features) && | ||
(cd json && travis-cargo --only stable doc) | ||
if [ -z $BENCH ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't speak bash... What does the -z do, and why is the bench flag set to 1 on nightly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
(cd json && travis-cargo build) && | ||
(cd json && travis-cargo --only nightly test) && | ||
(cd json_tests && travis-cargo --skip nightly test -- --features with-syntex --no-default-features) && | ||
(cd json_tests && travis-cargo --only nightly test -- --features nightly-testing) && | ||
(cd json && travis-cargo --only stable doc) | ||
else | ||
(cd json_tests && travis-cargo bench) | ||
fi | ||
|
||
after_success: | ||
- (cd json && travis-cargo --only stable doc-upload) | ||
- (cd json_tests && travis-cargo coveralls --no-sudo) | ||
- (cd json_tests && travis-cargo --only stable coveralls --no-sudo) | ||
|
||
env: | ||
global: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where the first three builds are declared.