Browse Source

Enable travisci build

staging
Marc Poulhiès 3 years ago
parent
commit
d4889bfd44
  1. 11
      .travis.yml
  2. 9
      ci/install.sh

11
.travis.yml

@ -6,18 +6,21 @@ matrix:
rust: stable
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
script:
- cargo build --verbose
before_install: set -e
install:
- bash ci/install.sh
script:
- bash ci/script.sh
- cargo build --release --target $TARGET
after_success:
- bash ci/after-success.sh
#after_success:
# - bash ci/after-success.sh
after_script: set +e
#after_script: set +e
cache: cargo

9
ci/install.sh

@ -0,0 +1,9 @@
set -euxo pipefail
main() {
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
rustup target add $TARGET
fi
}
main
Loading…
Cancel
Save