-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
47 lines (42 loc) · 963 Bytes
/
.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
matrix:
allow_failures:
- os: windows
os:
- osx
- linux
- windows
language: node_js
node_js:
- node
- 14
- 13
- 10
- 9
- 8
cache:
- npm: true
- cargo: true
before_install:
# Install Rust and Cargo
- |
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
choco install rust
else
curl https://sh.rustup.rs -sSf > /tmp/rustup.sh && /
sh /tmp/rustup.sh -y && /
export PATH="$HOME/.cargo/bin:$PATH" && /
source "$HOME/.cargo/env"
fi
#rust toolchain
- rustup toolchain uninstall stable
- rustup toolchain install stable
- rustup show
# Install NPM packages
- node -v
- npm -v
- npm install --unsafe-perm=true
script:
- travis_wait 30 npm run test -- --runInBand
# Publish when using '[publish binary]' keywords
- COMMIT_MESSAGE=$(git log --format=%B --no-merges -n 1 | tr -d '\n')
- if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then npm run upload-binary || exit 0; fi;