-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace travis "script" with shell script
It is more flexible
- Loading branch information
1 parent
556b838
commit 321d0b4
Showing
2 changed files
with
26 additions
and
20 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
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/sh -e | ||
|
||
ci/env-debug.sh | ||
if [ -z "$ON_WINDOWS" ]; then ccache --zero-stats; fi | ||
ci/install-protobuf.sh | ||
if [ -z "$ON_WINDOWS" ]; then ccache --show-stats; fi | ||
export PATH="$HOME/bin:$PATH" | ||
export LD_LIBRARY_PATH="$HOME/lib" | ||
which protoc | ||
protoc --version | ||
if [ -z "$ON_WINDOWS" ]; | ||
then PKG_CONFIG_PATH="/home/travis/lib/pkgconfig" interop/cxx/compile.sh | ||
fi | ||
export RUST_BACKTRACE=1 | ||
|
||
protobuf/regenerate.sh | ||
cargo test --all | ||
# `cargo test --all --features=FFF` doesn't work if there are crates without feature `FFF` | ||
# hence the explicit list of tests | ||
protobuf-test/test.sh | ||
protobuf-codegen-pure-test/test.sh | ||
protoc/test.sh | ||
cargo build --all --all-targets | ||
|
||
# vim: set ts=4 sw=4 et: |