Skip to content

Commit

Permalink
Downgrade dependencies on minimum versions build
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 15, 2019
1 parent 5b5d727 commit 4dce6d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -16,24 +16,31 @@ matrix:
- rust: 1.28.0
name: "crossbeam on 1.28.0"
script: ./ci/crossbeam.sh
before_script: ./ci/downgrade-dependencies.sh
- rust: 1.26.0
name: "crossbeam-channel on 1.26.0"
script: ./ci/crossbeam-channel.sh
before_script: ./ci/downgrade-dependencies.sh
- rust: 1.28.0
name: "crossbeam-deque on 1.28.0"
script: ./ci/crossbeam-deque.sh
before_script: ./ci/downgrade-dependencies.sh
- rust: 1.26.0
name: "crossbeam-epoch on 1.26.0"
script: ./ci/crossbeam-epoch.sh
before_script: ./ci/downgrade-dependencies.sh
- rust: 1.26.0
name: "crossbeam-queue on 1.26.0"
script: ./ci/crossbeam-queue.sh
before_script: ./ci/downgrade-dependencies.sh
- rust: 1.28.0
name: "crossbeam-skiplist on 1.28.0"
script: ./ci/crossbeam-skiplist.sh
before_script: ./ci/downgrade-dependencies.sh
- rust: 1.26.0
name: "crossbeam-utils on 1.26.0"
script: ./ci/crossbeam-utils.sh
before_script: ./ci/downgrade-dependencies.sh

# Test crates on nightly Rust.
- rust: nightly
Expand Down
5 changes: 5 additions & 0 deletions ci/downgrade-dependencies.sh
@@ -0,0 +1,5 @@
# lazy_static 1.4 requires Rust 1.27+
# and cfg-if 1.10 requires Rust 1.31+ so downgrade it.
- cargo generate-lockfile
- cargo update -p cfg-if --precise 1.9
- cargo update -p lazy_static --precise 1.3

0 comments on commit 4dce6d7

Please sign in to comment.