nalgebra/.circleci/config.yml

110 lines
2.8 KiB
YAML
Raw Normal View History

2020-04-06 00:43:25 +08:00
version: 2.1
executors:
rust-nightly-executor:
docker:
- image: rustlang/rust:nightly
rust-executor:
docker:
- image: rust:latest
jobs:
check-fmt:
executor: rust-executor
steps:
- checkout
- run:
name: install rustfmt
command: rustup component add rustfmt
- run:
name: check formatting
command: cargo fmt -- --check
build-native:
executor: rust-executor
steps:
- checkout
- run:
name: build --no-default-feature
command: cargo build --no-default-features;
- run:
name: build (default features)
command: cargo build;
- run:
name: build --all-features
command: cargo build --all-features
- run:
name: build nalgebra-glm
command: cargo build -p nalgebra-glm --all-features
- run:
name: build nalgebra-lapack
2020-04-06 00:53:50 +08:00
command: cargo build -p nalgebra-lapack --features netlib
2020-04-06 00:48:21 +08:00
test-native:
executor: rust-executor
steps:
- checkout
- run:
name: test
command: cargo test --all-features
- run:
name: test nalgebra-glm
command: cargo test -p nalgebra-glm --all-features
- run:
name: test nalgebra-lapack
2020-04-06 00:53:50 +08:00
command: cargo test -p nalgebra-lapack --features netlib
2020-04-06 00:43:25 +08:00
build-wasm:
executor: rust-executor
steps:
- checkout
- run:
name: install cargo-web
command: cargo install -f cargo-web;
- run:
name: build --all-features
command: cargo web build --verbose --target wasm32-unknown-unknown;
- run:
name: build nalgebra-glm
command: cargo build -p nalgebra-glm --all-features
build-no-std:
executor: rust-nightly-executor
2020-04-06 00:43:25 +08:00
steps:
- checkout
- run:
name: install xargo
command: rustup component add rust-src; cargo install -f xargo;
2020-04-06 00:43:25 +08:00
- run:
name: build
command: xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu;
- run:
name: build --features alloc
2020-04-06 00:53:50 +08:00
command: cp .circleci/Xargo.toml .; xargo build --verbose --no-default-features --features alloc --target=x86_64-unknown-linux-gnu;
2020-04-06 00:43:25 +08:00
build-nightly:
executor: rust-nightly-executor
steps:
- checkout
- run:
name: build --all-features
command: cargo build --all-features
workflows:
version: 2
build:
jobs:
- check-fmt
- build-native:
requires:
- check-fmt
- build-wasm:
requires:
- check-fmt
- build-no-std:
requires:
- check-fmt
- build-nightly:
requires:
- check-fmt
2020-04-06 00:48:21 +08:00
- test-native:
requires:
- build-native