File tree Expand file tree Collapse file tree 2 files changed +41
-19
lines changed Expand file tree Collapse file tree 2 files changed +41
-19
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
- rust :
3
- - stable
4
- - nightly
5
- - 1.29.0
6
- env :
7
- - BITCOINVERSION=0.18.0
8
- - BITCOINVERSION=0.18.1
9
- - BITCOINVERSION=0.19.0.1
10
- - BITCOINVERSION=0.19.1
11
- - BITCOINVERSION=0.20.0
12
- - BITCOINVERSION=0.20.1
2
+
3
+ jobs :
4
+ include :
5
+ - rust : stable
6
+ env : RUSTFMTCHECK=true
7
+ - rust : nightly
8
+ - rust : 1.29.0
9
+ # Integration tests
10
+ - rust : stable
11
+ env : BITCOINVERSION=0.18.0
12
+ - rust : stable
13
+ env : BITCOINVERSION=0.18.1
14
+ - rust : stable
15
+ env : BITCOINVERSION=0.19.0.1
16
+ - rust : stable
17
+ env : BITCOINVERSION=0.19.1
18
+ - rust : stable
19
+ env : BITCOINVERSION=0.20.0
20
+ - rust : stable
21
+ env : BITCOINVERSION=0.20.1
13
22
14
23
script :
15
24
- ./contrib/test.sh
Original file line number Diff line number Diff line change 1
1
2
+ set -xe
3
+
4
+ # Just echo all the relevant env vars to help debug Travis.
5
+ echo " TRAVIS_RUST_VERSION: \" $TRAVIS_RUST_VERSION \" "
6
+ echo " RUSTFMTCHECK: \" $RUSTFMTCHECK \" "
7
+ echo " BITCOINVERSION: \" $BITCOINVERSION \" "
8
+ echo " PATH: \" $PATH \" "
9
+
10
+
2
11
# Pin dependencies for Rust v1.29
3
12
if [ " $TRAVIS_RUST_VERSION " = " 1.29.0" ]; then
4
13
cargo generate-lockfile --verbose
@@ -10,18 +19,22 @@ if [ "$TRAVIS_RUST_VERSION" = "1.29.0" ]; then
10
19
cargo update --verbose --package " serde_derive" --precise " 1.0.98"
11
20
fi
12
21
13
- if [ " $TRAVIS_RUST_VERSION " = " stable " ]; then
22
+ if [ -n " $RUSTFMTCHECK " ]; then
14
23
rustup component add rustfmt
15
24
cargo fmt --all -- --check
16
25
fi
17
26
27
+ # Integration test.
28
+ if [ -n " $BITCOINVERSION " ]; then
29
+ wget https://bitcoincore.org/bin/bitcoin-core-$BITCOINVERSION /bitcoin-$BITCOINVERSION -x86_64-linux-gnu.tar.gz
30
+ tar -xzvf bitcoin-$BITCOINVERSION -x86_64-linux-gnu.tar.gz
31
+ export PATH=$PATH :$( pwd) /bitcoin-$BITCOINVERSION /bin
32
+ cd integration_test
33
+ ./run.sh
34
+ exit 0
35
+ fi
36
+
37
+ # Regular build/unit test.
18
38
cargo build --verbose
19
39
cargo test --verbose
20
40
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
-
You can’t perform that action at this time.
0 commit comments