2020-03-15 11:35:35 +00:00
|
|
|
language: rust
|
|
|
|
rust: stable
|
2020-04-03 09:25:54 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libssl-dev
|
|
|
|
|
2020-03-15 11:35:35 +00:00
|
|
|
jobs:
|
2020-07-07 15:19:26 +00:00
|
|
|
allow_failures:
|
|
|
|
- os: windows
|
2020-07-06 08:17:30 +00:00
|
|
|
- os: osx
|
|
|
|
name: macOS 10.15
|
2020-07-07 15:19:26 +00:00
|
|
|
|
2020-03-15 11:35:35 +00:00
|
|
|
include:
|
2020-07-15 13:59:04 +00:00
|
|
|
- stage: Format
|
2020-07-07 14:52:17 +00:00
|
|
|
os: linux
|
2020-07-07 14:57:20 +00:00
|
|
|
before_script:
|
|
|
|
- rustup component add rustfmt
|
2020-07-07 14:48:45 +00:00
|
|
|
script:
|
2020-07-07 14:57:20 +00:00
|
|
|
- cargo fmt --all -- --check
|
2020-07-07 14:48:45 +00:00
|
|
|
|
2020-07-15 13:59:04 +00:00
|
|
|
- stage: Clippy
|
|
|
|
os: linux
|
|
|
|
before_script:
|
|
|
|
- rustup component add clippy
|
|
|
|
script:
|
|
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
|
2020-07-07 14:48:45 +00:00
|
|
|
- stage: Test
|
2020-07-07 14:52:17 +00:00
|
|
|
os: linux
|
2020-03-15 11:35:35 +00:00
|
|
|
|
2020-07-07 14:57:20 +00:00
|
|
|
- os: windows
|
|
|
|
|
2020-03-15 11:35:35 +00:00
|
|
|
- os: osx
|
2020-07-07 14:48:45 +00:00
|
|
|
|
2020-07-15 11:23:28 +00:00
|
|
|
- os: linux
|
|
|
|
name: Minimal build
|
|
|
|
script:
|
2020-07-15 12:05:52 +00:00
|
|
|
- cd matrix_sdk
|
2020-07-15 11:23:28 +00:00
|
|
|
- cargo build --no-default-features
|
|
|
|
|
2020-07-06 08:17:30 +00:00
|
|
|
- os: osx
|
|
|
|
name: macOS 10.15
|
|
|
|
osx_image: xcode12
|
|
|
|
|
2020-04-03 09:25:54 +00:00
|
|
|
- os: linux
|
|
|
|
name: Coverage
|
|
|
|
before_script:
|
|
|
|
- cargo install cargo-tarpaulin
|
|
|
|
script:
|
2020-04-29 08:56:17 +00:00
|
|
|
- cargo tarpaulin --out Xml
|
2020-04-03 09:25:54 +00:00
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2020-03-15 11:35:35 +00:00
|
|
|
|
2020-05-08 14:12:21 +00:00
|
|
|
- os: linux
|
|
|
|
name: wasm32-unknown-unknown
|
|
|
|
before_script:
|
|
|
|
- |
|
2020-05-13 12:48:36 +00:00
|
|
|
set -e
|
2020-05-08 14:12:21 +00:00
|
|
|
cargo install wasm-bindgen-cli
|
|
|
|
rustup target add wasm32-unknown-unknown
|
|
|
|
wget https://github.com/emscripten-core/emsdk/archive/master.zip
|
|
|
|
unzip master.zip
|
|
|
|
./emsdk-master/emsdk install latest
|
|
|
|
./emsdk-master/emsdk activate latest
|
|
|
|
script:
|
|
|
|
- |
|
2020-05-13 12:48:36 +00:00
|
|
|
set -e
|
2020-05-08 14:12:21 +00:00
|
|
|
source emsdk-master/emsdk_env.sh
|
2020-05-12 13:42:50 +00:00
|
|
|
cd matrix_sdk/examples/wasm_command_bot
|
2020-05-08 14:12:21 +00:00
|
|
|
cargo build --target wasm32-unknown-unknown
|
|
|
|
cd -
|
|
|
|
|
|
|
|
cd matrix_sdk_base
|
2020-05-12 13:47:37 +00:00
|
|
|
cargo test --target wasm32-unknown-unknown --no-default-features
|
2020-05-08 14:12:21 +00:00
|
|
|
|
2020-03-15 11:35:35 +00:00
|
|
|
script:
|
2020-04-29 08:56:17 +00:00
|
|
|
- cargo build
|
|
|
|
- cargo test
|