1version: 2
2
3jobs:
4 core:
5 docker:
6 - image: rust:1
7
8 steps:
9 - checkout
10
11 - restore_cache:
12 key: target-cache
13
14 - run: rustc --version; cargo --version; rustup --version
15 - run: rustup component add rustfmt
16 - run: rustup component add clippy
17 - run: cargo fmt -- --check
18 - run: cargo test
19 - run: cargo clippy
20 - run: cargo bench
21
22 - save_cache:
23 key: target-cache
24 paths:
25 - ~/.cargo
26 - ./target
27
28 ios:
29 macos:
30 xcode: "10.0.0"
31
32 steps:
33 - checkout
34 - run: cd bindings/swift && xcodebuild test -workspace Example/StretchKit.xcworkspace -scheme StretchKit -destination 'platform=iOS Simulator,name=iPhone XR,OS=12.0'
35
36 js:
37 docker:
38 - image: rust:1
39
40 steps:
41 - checkout
42
43 - restore_cache:
44 key: target-cache
45
46 - run: rustc --version; cargo --version; rustup --version
47 - run: rustup component add rustfmt
48 - run: rustup component add clippy
49 - run: cargo install wasm-pack
50 - run: cargo fmt -- --check
51 - run: wasm-pack test --node
52 - run: cargo clippy
53 - run: cargo bench
54
55 - save_cache:
56 key: target-cache
57 paths:
58 - ~/.cargo
59 - ./target
60
61workflows:
62 version: 2
63 test_all:
64 jobs:
65 - core
66 - ios
67 - js
68