forked from LevyForchh/carmen-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
80 lines (67 loc) · 1.9 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
matrix:
include:
- language: rust
sudo: required
dist: focal
cache: cargo
rust:
- stable
before_script:
- rustup component add rustfmt
before_cache:
- cargo install cargo-tarpaulin
script:
- cargo clean
- cargo fmt --all -- --check
- cargo build
- cargo test
- language: node_js
sudo: false
os: linux
dist: focal
env: BUILDTYPE=release
node_js: 14
cache:
directories:
- $HOME/.cargo
- $TRAVIS_BUILD_DIR/native/target
install:
- node -v
- which node
- python3 --version
- which python3
- 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: xcode12.2
env: BUILDTYPE=release
node_js: 14
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
- travis_wait 30 neon build $([ "${BUILDTYPE}" == 'debug' ] && echo "" || echo "--release")
script:
- yarn test
after_success:
- ./scripts/publish.sh --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")