#!/bin/bash

(
  export RUST_BACKTRACE=1;
  cargo test --features test --all &&
  cargo check --benches --features test &&
  cargo check --all --no-default-features &&
  echo "TRAVIS_RUST_VERSION=$TRAVIS_RUST_VERSION" &&
  ([ "$TRAVIS_RUST_VERSION" != "nightly" ] || cargo test --features "test nightly" -p gluon compile_test)
)

#!/bin/bash
set -ex

export RUST_BACKTRACE=1

cargo test --features test --all
cargo check --benches --features test
cargo check --all --no-default-features

echo "TRAVIS_RUST_VERSION=$TRAVIS_RUST_VERSION"
[ "$TRAVIS_RUST_VERSION" != "nightly" ] || cargo test --features "test nightly" -p gluon compile_test

Use set -e instead of && to chain test commands
chore: Use set -e instead of && to chain test commands
