-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from kennytm/fix-travis
Reenable Travis CI.
- Loading branch information
Showing
7 changed files
with
37 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: rust | ||
sudo: false | ||
|
||
cache: cargo | ||
|
||
rust: | ||
- nightly | ||
|
||
env: | ||
- CHECK='cd collector && ./check-benchmarks.sh' | ||
- CHECK='cargo build --verbose && cargo test --verbose' | ||
|
||
script: | ||
- sh -x -c "$CHECK" |
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,8 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"collector", | ||
"site", | ||
] | ||
members = ["site"] # do not add "collector", otherwise the exclude won't work. | ||
exclude = ["collector/benchmarks"] | ||
|
||
[profile.release] | ||
debug = true |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
|
||
all: | ||
$(CARGO) rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS) | ||
patches: | ||
@echo '' |
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,22 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# print what we're doing | ||
set -x | ||
# fail if variables are unset | ||
set -u | ||
# exit if anything fails | ||
set -e | ||
|
||
for dir in benchmarks/*; do | ||
pwd; | ||
cd benchmarks; | ||
for dir in *; do | ||
if [[ -d "$dir" ]]; then | ||
cd "$dir"; | ||
patches=`make patches`; | ||
for patch in "" $patches; do | ||
cd "$dir" | ||
patches=(`make patches`); | ||
for patch in "${patches[@]:-}"; do | ||
test_name="$dir${patch/@/_}" | ||
echo "travis_fold:start:$test_name" | ||
echo "travis_time:start:$test_name" | ||
echo "Checking $dir$patch..." | ||
start_time=$(date -u '+%s%N') | ||
CARGO=cargo \ | ||
RUSTC=rustc \ | ||
make "all$patch"; | ||
end_time=$(date -u '+%s%N') | ||
duration=$(($end_time-$start_time)) | ||
echo | ||
echo "travis_fold:end:$test_name" | ||
echo "travis_time:end:$test_name:start=$start_time,finish=$end_time,duration=$duration" | ||
done; | ||
cd ../..; | ||
cd ..; | ||
fi | ||
done |
This file was deleted.
Oops, something went wrong.
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