-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
81 lines (67 loc) · 1.92 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
matrix:
include:
- language: rust
sudo: required
dist: xenial
cache: cargo
rust:
- beta
before_script:
- rustup component add rustfmt
before_cache:
- cargo install cargo-tarpaulin
script:
- cargo clean
- cargo fmt --all -- --check
- cargo build
- cargo test
after_success: |
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
- language: node_js
sudo: false
os: linux
env: BUILDTYPE=release
node_js: 10
cache:
directories:
- $HOME/.cargo
- $TRAVIS_BUILD_DIR/native/target
install:
- node -v
- which node
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
- yarn install --ignore-scripts
- neon clean
- neon build $([ "${BUILDTYPE}" == 'debug' ] && echo "" || echo "--release")
script:
- yarn coverage
after_success:
- ./scripts/publish.sh --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")
- language: node_js
sudo: false
os: osx
osx_image: xcode9.2
env: BUILDTYPE=release
node_js: 10
cache:
directories:
- $HOME/.cargo
- $TRAVIS_BUILD_DIR/native/target
install:
- node -v
- which node
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
- yarn install --ignore-scripts
- neon clean
- neon build $([ "${BUILDTYPE}" == 'debug' ] && echo "" || echo "--release")
script:
- yarn test
after_success:
- ./scripts/publish.sh --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")