Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Problem: (CRO-654) Unnoticed warnings in CI
Browse files Browse the repository at this point in the history
Solution: Terminate on warnings on CI
  • Loading branch information
calvinlauyh committed Dec 17, 2019
1 parent a9155f8 commit f9ddf5b
Show file tree
Hide file tree
Showing 27 changed files with 188 additions and 166 deletions.
16 changes: 8 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ steps:
- ls -l /dev/sgx
- ls -l /var/run/aesmd/aesm.socket
- docker run --name hw1-${DRONE_COMMIT_SHA} --rm -v $PWD:/chain --device /dev/sgx cryptocom/chain:latest /bin/bash /chain/ci-scripts/tx-validation-hw-test.sh
- name: Teardown
commands:
- name: Teardown
commands:
- docker stop hw1-${DRONE_COMMIT_SHA} || exit 0
when:
status:
when:
status:
- success
- failure

Expand Down Expand Up @@ -106,11 +106,11 @@ steps:
- ls -l /dev/sgx
- ls -l /var/run/aesmd/aesm.socket
- docker run --name hw2-${DRONE_COMMIT_SHA} --rm --env SPID=$SPID --env IAS_API_KEY=$IAS_API_KEY -v $PWD:/chain --device /dev/sgx cryptocom/chain:latest /bin/bash /chain/ci-scripts/tx-query-hw-test.sh
- name: Teardown
commands:
- name: Teardown
commands:
- docker stop hw2-${DRONE_COMMIT_SHA} || exit 0
when:
status:
when:
status:
- success
- failure

Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ rust: &rust
- rm -rf $HOME/.cargo/registry/src
env:
- RUST_BACKTRACE=1
- RUSTFLAGS=-Ctarget-feature=+aes,+sse2,+sse4.1,+ssse3
- RUSTFLAGS="-Ctarget-feature=+aes,+sse2,+sse4.1,+ssse3 -D warnings"
- PATH=$HOME/.local/bin:$PATH
- LD_LIBRARY_PATH=$HOME/lib
- PKG_CONFIG_PATH=$HOME/lib/pkgconfig
Expand All @@ -64,11 +64,11 @@ rust: &rust
- |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
(rustfmt --version || rustup component add rustfmt)
cargo fmt -- --check --color=auto
cargo fmt -- --check --color=auto || travis_terminate 1
(cargo-clippy --version || rustup component add clippy)
cargo clippy -- -D warnings
cargo clippy -- -D warnings || travis_terminate 1
(cargo-audit -h || cargo install cargo-audit)
cargo audit
cargo audit || travis_terminate 1
fi
after_success: |
Expand Down
Loading

0 comments on commit f9ddf5b

Please sign in to comment.