Skip to content

Commit eae2b51

Browse files
committed
Build and test Rocket integration on nightly compiler on Travis
1 parent e82534a commit eae2b51

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.travis.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,30 @@ env:
2121
- secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k="
2222

2323
script:
24+
# Build library standalone, with Iron, and with Rocket integrations enabled, respectively
2425
- cargo build --verbose
2526
- cargo build --verbose --features iron-handlers
26-
- cargo test --verbose --features "iron-handlers expose-test-schema"
27+
- |
28+
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
29+
cargo build --verbose --features rocket-handlers
30+
fi
31+
32+
# Build example binaries; first Iron, then Rocket examples
33+
- cargo build --verbose --example server --features "iron-handlers expose-test-schema"
34+
- |
35+
if [ "TRAVIS_RUST_VERSION" = "nightly" ]; then
36+
cargo build --verbose --example rocket-server --features "rocket-handlers expose-test-schema"
37+
fi
38+
39+
# Run all tests for the base library and available integrations
40+
- export TEST_FEATURES="iron-handlers expose-test-schema"
41+
- |
42+
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
43+
export TEST_FEATURES="$TEST_FEATURES rocket-handlers"
44+
fi
45+
46+
- cargo test --verbose --features "$TEST_FEATURES"
47+
2748

2849
before_deploy:
2950
- rm -rf target/package/

0 commit comments

Comments
 (0)