• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gnosis / dex-services / 4579
31%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2020 04:11PM UTC
Jobs 1
Files 89
Run time 44s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Aug 2020 03:55PM UTC coverage: 28.573% (-0.02%) from 28.589%
4579

push

travis-pro

web-flow
Fix unnecessary rebuilds (#1258)

This PR addresses an issue in the new `contracts` crate when it was being rebuilt when it wasn't necessary. Since this is use by almost all other crates in this project, it would lead to unnecessarily long build times.

### Test Plan

Observe it would rebuild `contracts` and dependent crates unnecessarily on the base branch:
```
$ git checkout npm-contracts
$ cargo build --workspace --all-features
...
$ touch e2e/src/lib.rs && cargo build --workspace --all-features # BOO!
   Compiling contracts v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/contracts)
   Compiling core v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/core)
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/gnosis/dex-services/e2e)
   Compiling driver v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/driver)
   Compiling price-estimator v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/price-estimator)
    Finished dev [unoptimized + debuginfo] target(s) in 42.31s
```

Now check the fix:
```
$ git checkout fix-cargo-rebuild-contracts
$ cargo build --workspace --all-features
...
$ touch e2e/src/lib.rs && cargo build --workspace --all-features # YAY!
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/gnosis/dex-services/e2e)
    Finished dev [unoptimized + debuginfo] target(s) in 8.67s
```

And verify that deployments and modifying the `target/deploy/*.addr` files still correctly trigger rebuilds:
```
$ (cd contracts; cargo run --bin deploy --all-features) && cargo build --workspace --all-features
   Compiling contracts v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/contracts)
   Compiling core v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/core)
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/gnosis/dex-services/e2e)
   Compiling driver v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/driver)
   Compiling price-estimator v0.1.0 (/var/home/nlordell/... (continued)

11754 of 47087 branches covered (24.96%)

Branch coverage included in aggregate %.

3130 of 5004 relevant lines covered (62.55%)

11997.19 hits per line

Jobs
ID Job ID Ran Files Coverage
3 4579.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2) 06 Aug 2020 04:11PM UTC 0
28.57
Travis Job 4579.3
Source Files on build 4579
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4579
  • ab8c3339 on github
  • Prev Build on master (#4576)
  • Next Build on master (#4581)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc