mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-03-15 23:10:50 +00:00
85 lines
3.5 KiB
YAML
85 lines
3.5 KiB
YAML
|
language: rust
|
||
|
sudo: false
|
||
|
|
||
|
cache: cargo
|
||
|
|
||
|
matrix:
|
||
|
include:
|
||
|
|
||
|
- rust: stable
|
||
|
env: RUST_BACKTRACE=1
|
||
|
# addons:
|
||
|
# firefox: latest
|
||
|
# chrome: stable
|
||
|
before_script:
|
||
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
||
|
- cargo install-update -a
|
||
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
|
||
|
script:
|
||
|
- cargo build --verbose --all
|
||
|
- cargo test --verbose --all
|
||
|
- cd wasm
|
||
|
- wasm-pack build
|
||
|
# - wasm-pack test --chrome --firefox --headless
|
||
|
|
||
|
# Builds with wasm-pack.
|
||
|
- rust: beta
|
||
|
env: RUST_BACKTRACE=1
|
||
|
# addons:
|
||
|
# firefox: latest
|
||
|
# chrome: stable
|
||
|
before_script:
|
||
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
||
|
- cargo install-update -a
|
||
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
|
||
|
script:
|
||
|
- cargo build --verbose --all
|
||
|
- cargo test --verbose --all
|
||
|
- cd wasm
|
||
|
- wasm-pack build
|
||
|
# - wasm-pack test --chrome --firefox --headless
|
||
|
|
||
|
# Builds on nightly.
|
||
|
- rust: nightly
|
||
|
env: RUST_BACKTRACE=1
|
||
|
before_script:
|
||
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
||
|
- cargo install-update -a
|
||
|
- rustup target add wasm32-unknown-unknown
|
||
|
script:
|
||
|
- cargo build --verbose --all
|
||
|
- cargo test --verbose --all
|
||
|
- cd wasm
|
||
|
- cargo check
|
||
|
- cargo check --target wasm32-unknown-unknown
|
||
|
- cargo check --no-default-features
|
||
|
- cargo check --target wasm32-unknown-unknown --no-default-features
|
||
|
- cargo check --no-default-features --features console_error_panic_hook
|
||
|
- cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
|
||
|
- cargo check --no-default-features --features "console_error_panic_hook wee_alloc"
|
||
|
- cargo check --target wasm32-unknown-unknown --no-default-features --features "console_error_panic_hook wee_alloc"
|
||
|
|
||
|
# Builds on beta.
|
||
|
- rust: beta
|
||
|
env: RUST_BACKTRACE=1
|
||
|
before_script:
|
||
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
||
|
- cargo install-update -a
|
||
|
- rustup target add wasm32-unknown-unknown
|
||
|
script:
|
||
|
- cargo build --verbose --all
|
||
|
- cargo test --verbose --all
|
||
|
- cd wasm
|
||
|
- cargo check
|
||
|
- cargo check --target wasm32-unknown-unknown
|
||
|
- cargo check --no-default-features
|
||
|
- cargo check --target wasm32-unknown-unknown --no-default-features
|
||
|
- cargo check --no-default-features --features console_error_panic_hook
|
||
|
- cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
|
||
|
# Note: no enabling the `wee_alloc` feature here because it requires
|
||
|
# nightly for now.
|