Skip to content

Commit

Permalink
Replace travis "script" with shell script
Browse files Browse the repository at this point in the history
It is more flexible
  • Loading branch information
stepancheg committed May 19, 2019
1 parent 556b838 commit 321d0b4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
21 changes: 1 addition & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,8 @@ matrix:
# allow_failures:
# - os: windows

before_install:
- 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

script:
- 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
- ci/run.sh

notifications:
email:
Expand Down
25 changes: 25 additions & 0 deletions ci/run.sh
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:

0 comments on commit 321d0b4

Please sign in to comment.