2014-09-07 03:27:03 -05:00
|
|
|
language: rust
|
2017-01-27 16:17:07 -06:00
|
|
|
|
2017-01-31 11:09:37 -06:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-09-15 17:34:05 -05:00
|
|
|
- rust: stable
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde"
|
|
|
|
- cargo build --features rc
|
|
|
|
- cargo build --no-default-features
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde_test"
|
|
|
|
- cargo build
|
2018-12-31 21:43:08 -06:00
|
|
|
- cargo test --features serde/derive,serde/rc
|
2018-09-15 17:34:05 -05:00
|
|
|
|
|
|
|
- rust: beta
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde"
|
|
|
|
- cargo build --features rc
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite"
|
|
|
|
- cargo test
|
2018-09-15 17:34:05 -05:00
|
|
|
|
|
|
|
- rust: nightly
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde"
|
|
|
|
- cargo build
|
|
|
|
- cargo build --no-default-features
|
|
|
|
- cargo build --no-default-features --features alloc
|
|
|
|
- cargo build --no-default-features --features rc,alloc
|
2018-12-31 22:31:49 -06:00
|
|
|
- cargo test --features derive,rc,unstable
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite/deps"
|
|
|
|
- cargo build
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite"
|
2018-12-31 22:31:49 -06:00
|
|
|
- cargo test --features compiletest,unstable
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite/no_std"
|
|
|
|
- cargo build
|
2018-09-15 17:34:05 -05:00
|
|
|
|
|
|
|
- rust: 1.13.0
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde"
|
|
|
|
- cargo build --features rc
|
|
|
|
- cargo build --no-default-features
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde_test"
|
|
|
|
- cargo build
|
2018-09-15 17:34:05 -05:00
|
|
|
|
|
|
|
- rust: 1.15.0
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde_derive"
|
|
|
|
- cargo build
|
2018-09-15 17:34:05 -05:00
|
|
|
|
|
|
|
- rust: 1.20.0
|
|
|
|
- rust: 1.21.0
|
|
|
|
- rust: 1.25.0
|
|
|
|
- rust: 1.26.0
|
|
|
|
|
2017-01-31 11:09:37 -06:00
|
|
|
- rust: nightly
|
2018-11-24 17:12:48 -06:00
|
|
|
name: Clippy
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
2019-03-02 01:11:06 -06:00
|
|
|
- rustup component add clippy || travis_terminate 0
|
2018-12-31 21:51:38 -06:00
|
|
|
- cargo clippy -- -D clippy::all
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde"
|
2018-12-31 21:51:38 -06:00
|
|
|
- cargo clippy --features rc,unstable -- -D clippy::all
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde_derive"
|
2018-12-31 21:51:38 -06:00
|
|
|
- cargo clippy -- -D clippy::all
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde_test"
|
2018-12-31 21:51:38 -06:00
|
|
|
- cargo clippy -- -D clippy::all
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite"
|
2018-12-31 21:51:38 -06:00
|
|
|
- cargo clippy --tests --features unstable -- -D clippy::all
|
2018-09-15 18:15:59 -05:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite/no_std"
|
2018-12-31 21:51:38 -06:00
|
|
|
- cargo clippy -- -D clippy::all
|
2018-09-15 17:34:05 -05:00
|
|
|
|
2018-09-02 14:34:13 -05:00
|
|
|
- rust: nightly
|
2018-11-24 17:12:48 -06:00
|
|
|
name: Emscripten
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
2018-09-15 18:37:46 -05:00
|
|
|
- CARGO_WEB_RELEASE=$(curl -L -s -H Accept:application/json https://github.com/koute/cargo-web/releases/latest)
|
|
|
|
- CARGO_WEB_VERSION=$(echo "${CARGO_WEB_RELEASE}" | jq -r .tag_name)
|
2018-09-15 18:15:59 -05:00
|
|
|
- CARGO_WEB_URL="https://github.com/koute/cargo-web/releases/download/${CARGO_WEB_VERSION}/cargo-web-x86_64-unknown-linux-gnu.gz"
|
|
|
|
|
|
|
|
- nvm install 9
|
|
|
|
- mkdir -p ~/.cargo/bin
|
|
|
|
- curl -L "${CARGO_WEB_URL}" | gzip -d > ~/.cargo/bin/cargo-web
|
|
|
|
- chmod +x ~/.cargo/bin/cargo-web
|
|
|
|
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/test_suite"
|
|
|
|
- cargo web test --target=asmjs-unknown-emscripten --nodejs
|
|
|
|
- cargo web test --target=wasm32-unknown-emscripten --nodejs
|
|
|
|
|
2018-10-06 23:26:25 -05:00
|
|
|
allow_failures:
|
2018-11-10 22:06:11 -06:00
|
|
|
- rust: nightly
|
2018-11-24 17:12:48 -06:00
|
|
|
name: Clippy
|
2018-10-06 23:26:25 -05:00
|
|
|
- rust: nightly
|
2018-11-24 17:12:48 -06:00
|
|
|
name: Emscripten
|
2018-10-06 23:26:25 -05:00
|
|
|
|
2018-09-15 18:15:59 -05:00
|
|
|
script:
|
|
|
|
- cd "${TRAVIS_BUILD_DIR}/serde"
|
|
|
|
- cargo build --no-default-features
|
|
|
|
- cargo build
|