Build benchmarks on travis
This commit is contained in:
parent
8e5500d581
commit
ce674a9802
3 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.DS_Store
|
||||
/target
|
||||
/Cargo.lock
|
||||
/bench/bench
|
||||
|
|
|
@ -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
|
||||
|
|
11
bench/Makefile
Normal file
11
bench/Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue