mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
669b56a377
Issue has been fixed.
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
sudo: false
|
|
language: rust
|
|
|
|
rust:
|
|
- nightly
|
|
- stable
|
|
- beta
|
|
- 1.31.0
|
|
|
|
before_script:
|
|
- set -o errexit
|
|
|
|
script:
|
|
- shopt -s expand_aliases
|
|
- alias build="cargo build ${TARGET+--target=$TARGET}"
|
|
- build --no-default-features
|
|
- build
|
|
- build --features full
|
|
- build --features 'fold visit visit-mut'
|
|
- build --features 'full fold visit visit-mut'
|
|
- build --no-default-features --features derive
|
|
- build --no-default-features --features 'derive parsing'
|
|
- build --no-default-features --features 'derive printing'
|
|
- build --no-default-features --features 'proc-macro parsing printing'
|
|
- build --no-default-features --features full
|
|
- build --no-default-features --features 'full parsing'
|
|
- build --no-default-features --features 'full printing'
|
|
- build --no-default-features --features 'full parsing printing'
|
|
- build --no-default-features --features 'fold visit visit-mut parsing printing'
|
|
- build --no-default-features --features 'full fold visit visit-mut parsing printing'
|
|
|
|
matrix:
|
|
include:
|
|
- rust: nightly
|
|
name: Tests
|
|
script:
|
|
- cargo test --all-features --release
|
|
- rust: nightly
|
|
name: Examples
|
|
script:
|
|
- cargo check --manifest-path examples/dump-syntax/Cargo.toml
|
|
- cargo check --manifest-path examples/heapsize/example/Cargo.toml
|
|
- cargo check --manifest-path examples/lazy-static/example/Cargo.toml
|
|
- cargo check --manifest-path examples/trace-var/example/Cargo.toml
|
|
- rust: nightly
|
|
name: Codegen
|
|
script:
|
|
- (cd codegen && cargo run)
|
|
- git diff --exit-code
|
|
- rust: nightly
|
|
name: Minimal versions
|
|
script:
|
|
- cargo update -Z minimal-versions
|
|
- cargo build --all-features
|
|
- rust: nightly
|
|
name: Clippy
|
|
script:
|
|
- rustup component add clippy || travis_terminate 0
|
|
- cargo clippy --all-features
|
|
- rust: nightly
|
|
name: WebAssembly
|
|
env: TARGET=wasm32-unknown-unknown
|
|
install:
|
|
- rustup target add "${TARGET}"
|
|
allow_failures:
|
|
- rust: nightly
|
|
name: Clippy
|
|
fast_finish: true
|
|
|
|
env:
|
|
global:
|
|
- RUST_MIN_STACK=20000000
|