Fix up travis/appveyo specs
This commit is contained in:
parent
03f694fff6
commit
4516790572
2 changed files with 17 additions and 8 deletions
17
.travis.yml
17
.travis.yml
|
@ -19,19 +19,24 @@ env:
|
||||||
- secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k="
|
- secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k="
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Build library standalone, with Iron, and with Rocket integrations enabled, respectively
|
# Build all crates.
|
||||||
- cargo build --all --verbose
|
- cargo build --all --verbose
|
||||||
- cargo build --all --verbose --features iron-handlers
|
# Run all tests for all crates.
|
||||||
|
- cargo test --all
|
||||||
|
|
||||||
|
# Build and run tests for main juniper crate with certain features.
|
||||||
|
- cd juniper
|
||||||
|
- cargo build --verbose --features iron-handlers
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
|
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
|
||||||
cargo build --all --verbose --features rocket-handlers
|
cargo build --verbose --features rocket-handlers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build example binaries; first Iron, then Rocket examples
|
# Build example binaries; first Iron, then Rocket examples
|
||||||
- cargo build --all --verbose --example server --features "iron-handlers expose-test-schema"
|
- cargo build --verbose --example server --features "iron-handlers expose-test-schema"
|
||||||
- |
|
- |
|
||||||
if [ "TRAVIS_RUST_VERSION" = "nightly" ]; then
|
if [ "TRAVIS_RUST_VERSION" = "nightly" ]; then
|
||||||
cargo build --all --verbose --example rocket-server --features "rocket-handlers expose-test-schema"
|
cargo build --verbose --example rocket-server --features "rocket-handlers expose-test-schema"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run all tests for the base library and available integrations
|
# Run all tests for the base library and available integrations
|
||||||
|
@ -41,7 +46,7 @@ script:
|
||||||
export TEST_FEATURES="$TEST_FEATURES rocket-handlers rocket/testing"
|
export TEST_FEATURES="$TEST_FEATURES rocket-handlers rocket/testing"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- cargo test --all --verbose --features "$TEST_FEATURES"
|
- cargo test --verbose --features "$TEST_FEATURES"
|
||||||
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
|
|
@ -48,8 +48,12 @@ install:
|
||||||
build: false
|
build: false
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
# Build library standalone, with Iron, and with Rocket integrations enabled, respectively
|
# Build and test all crates.
|
||||||
- cargo build --verbose
|
- cargo build --all --verbose
|
||||||
|
- cargo test --all
|
||||||
|
|
||||||
|
# Build and test main juniper crate with certain features.
|
||||||
|
- cd juniper
|
||||||
- cargo build --verbose --features iron-handlers
|
- cargo build --verbose --features iron-handlers
|
||||||
- IF "%CHANNEL%"=="nightly" (cargo build --verbose --features rocket-handlers)
|
- IF "%CHANNEL%"=="nightly" (cargo build --verbose --features rocket-handlers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue