Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 1b759cb

Browse files
committed
Add Travis job for 1.29
1 parent 374f4f9 commit 1b759cb

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

.travis.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,12 @@ rust:
33
- stable
44
- beta
55
- nightly
6-
- 1.24.0
6+
- 1.29.0
77
env:
88
- BITCOINVERSION=0.18.0
99
- BITCOINVERSION=0.18.1
1010
- BITCOINVERSION=0.19.0.1
1111
- BITCOINVERSION=0.19.1
1212

13-
matrix:
14-
allow_failures:
15-
rust: 1.24.0
16-
1713
script:
18-
- |
19-
if [[ "$TRAVIS_RUST_VERSION" == stable ]]
20-
then
21-
rustup component add rustfmt
22-
cargo fmt --all -- --check
23-
fi
24-
- cargo build --verbose
25-
- cargo test --verbose
26-
- cargo build --verbose --examples
27-
# Integration test
28-
- wget https://bitcoincore.org/bin/bitcoin-core-$BITCOINVERSION/bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz
29-
- tar -xzvf bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz
30-
- export PATH=$PATH:$(pwd)/bitcoin-$BITCOINVERSION/bin
31-
- (cd integration_test && ./run.sh)
32-
14+
- ./contrib/test.sh

contrib/test.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Pin dependencies for Rust v1.29
3+
if [ "$TRAVIS_RUST_VERSION" = "1.29.0" ]; then
4+
cargo generate-lockfile --verbose
5+
cargo update --verbose --package "cc" --precise "1.0.41"
6+
cargo update --verbose --package "cfg-if" --precise "0.1.9"
7+
cargo update --verbose --package "unicode-normalization" --precise "0.1.9"
8+
cargo update --verbose --package "serde_json" --precise "1.0.39"
9+
cargo update --verbose --package "serde" --precise "1.0.98"
10+
cargo update --verbose --package "serde_derive" --precise "1.0.98"
11+
fi
12+
13+
if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then
14+
rustup component add rustfmt
15+
cargo fmt --all -- --check
16+
fi
17+
18+
cargo build --verbose
19+
cargo test --verbose
20+
cargo build --verbose --examples
21+
22+
# Integration test
23+
wget https://bitcoincore.org/bin/bitcoin-core-$BITCOINVERSION/bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz
24+
tar -xzvf bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz
25+
export PATH=$PATH:$(pwd)/bitcoin-$BITCOINVERSION/bin
26+
(cd integration_test && ./run.sh)
27+

0 commit comments

Comments
 (0)