[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request rustgd#113 from bjz/bench
Browse files Browse the repository at this point in the history
Build benchmarks on travis
  • Loading branch information
brendanzab committed Aug 11, 2014
2 parents 6f5638c + ce674a9 commit 9aec9fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
/target
/Cargo.lock
/bench/bench
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
script:
- cargo build
- cargo test
- make -C bench
- cargo doc
after_script:
# the doc directory needs to be in the root for rust-ci
Expand Down
11 changes: 11 additions & 0 deletions bench/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
all: bench

bench: *.rs ../src/*.rs
(cd .. && cargo build)
rustc -L ../target --test bench.rs

run: bench
./bench --bench

clean:
rm bench

0 comments on commit 9aec9fb

Please sign in to comment.