-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 861 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
sudo: false
language: rust
cache: cargo
notifications:
email: false
rust: nightly
env: RUST_BACKTRACE=1
addons:
firefox: latest
chrome: stable
before_script:
# rust stuff
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- cargo install-update -a
# wasm-pack
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
# nvm
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
- export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
- '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'
- nvm install --lts stable
- nvm use --lts stable
- npm install
script:
- npx commitlint-travis
- npm run build
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/