Updated Travis config, to not test the --release builds, since they're done on GitLab, and to keep the registry in the cache for now.

This commit is contained in:
Luke Anderson 2019-05-08 12:32:57 +10:00
parent 007b56bf27
commit ac3616251a
No known key found for this signature in database
GPG Key ID: 44408169EC61E228

View File

@ -2,8 +2,9 @@ language: rust
cache: cache:
directories: directories:
- /home/travis/.cargo - /home/travis/.cargo
before_cache: # Going to try caching the registry
- rm -rf /home/travis/.cargo/registry #before_cache:
# - rm -rf /home/travis/.cargo/registry
before_install: before_install:
- curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip - curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip
- unzip protoc-3.4.0-linux-x86_64.zip -d protoc3 - unzip protoc-3.4.0-linux-x86_64.zip -d protoc3
@ -13,7 +14,8 @@ before_install:
- sudo chown -R $USER /usr/local/include/google - sudo chown -R $USER /usr/local/include/google
env: env:
- BUILD=--all - BUILD=--all
- BUILD=--release --all # Not building --release on travis any more, only GitLab
# - BUILD=--release --all
- BUILD= --manifest-path eth2/state_processing/Cargo.toml --release --features fake_crypto - BUILD= --manifest-path eth2/state_processing/Cargo.toml --release --features fake_crypto
script: script:
- cargo build --verbose $BUILD - cargo build --verbose $BUILD
@ -30,14 +32,17 @@ matrix:
- rust: nightly - rust: nightly
fast_finish: true fast_finish: true
exclude: exclude:
- rust: beta # Not building --release on travis any more, only GitLab
env: BUILD=--release --all # - rust: beta
# env: BUILD=--release --all
- rust: beta - rust: beta
env: BUILD= --manifest-path eth2/state_processing/Cargo.toml --release --features fake_crypto env: BUILD= --manifest-path eth2/state_processing/Cargo.toml --release --features fake_crypto
- rust: nightly # Not building --release on travis any more, only GitLab
env: BUILD=--release --all # - rust: nightly
# env: BUILD=--release --all
- rust: nightly - rust: nightly
env: BUILD= --manifest-path eth2/state_processing/Cargo.toml --release --features fake_crypto env: BUILD= --manifest-path eth2/state_processing/Cargo.toml --release --features fake_crypto
install: install:
- rustup component add rustfmt - rustup component add rustfmt
- rustup component add clippy # No clippy for now
# - rustup component add clippy