-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
81 lines (66 loc) · 4.74 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
language: rust
rust: stable
cache:
cargo: true
directories:
# cache yarn
- $HOME/.cache/yarn
# cache npm
- $HOME/.npm
- node_modules
- $TRAVIS_BUILD_DIR/node_modules
# cache parcel
- $TRAVIS_BUILD_DIR/.cache
env:
global:
- secure: otWTFYQmkY4b9N/DttsEgHDbLMBwjhFGzy8cnP0aFyU3Xe+46x910ydoyPtknfnr6Kl+gHNYBJhgQCYhRvUDtaLXJb0oV2HxbCY/yK68ijYizF3H+9wBJNX6NhB92wD0CozUlPFYbiSPIgSRJOCxVRowZ7fPDtnmSYsrBvqJCSZAlV5AFg2ymTOpl/Vf4ZnQJc7FKX60kNRi7eO+QisKHQoSK8YXv3jzqYzqSt/Ndytzrti2pL4AHsrDhEsKOG8OSl2cfrgLeaqdxgMmVYHwLlvl8c9yR4RiYrxpRRVqYZWX1+TZcaqLH01hcLBh79436BYWkrP9sC/jqnb3KxFhDU0SoZAyZJ/qzIlyXz3pEmbHUpiEXFh6mwLpG/AUhQO2olV/37+iAfG7aJnbQ6J52DySgC1es4q8ADWs09wfplvsjYxNEtwk6eUd+nVpbHNrNiWtuR7d4y9Og8gbjDQ5BLP+nqtCVn389jc4Z5fQXAER1s5760lH/5Sj5p1lyOfxBBKRfEvNW/SLX/PaWFF0EncAdBfY+iCSAozDthQ1s9f//Id+HmN8sYRo49iXuXlu2JwUM/TyizZmZ8sDfzIvpW9Hkup2YNRWkWHooPUGlvMVO80QRSZ61feD/p1FOL7PHFvFIEMUOlWOkYl2Xh9VA3Gi9ZRvO6EWCVOjyx9V9oU=
- secure: DEsF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UxoJLYLBSlqLaLzemsjl5oz6CDMa1SgtAC39yeUJ5uh1rr6N9fr25802u+IsXVz5jXx5XuDpUSZM5p71vUbGVf68rXLUOAjGnc0Iluuta0T4PeCgeIQGzRnDebKYGOavP/FtllpXcDnhydq6DG/hh4DItz9B90/vCEq+Uq9vX6S4w50fSWDKhZtSkJTM84WwTUENCXDxZsSSNgix4/beHH1WozLWlNI3eHAQ22t4Nqp6xqlZC0mCDhj3ZRVJvpR2J5yYpJoHWBQA/zebBViLImzgzyMPZocqo=
- secure: Y/dvzfEx3vLWC4Zml60dx3lwoOU5yxSpriFkg8vojUO/OqIK3SSlA5LT4iaaNX22WKXa8/nOMtBlxKEabuyOsgUkrBi7ZO9XFd2xiFMkmf6F2w0m1u6+yiU2iaoFFQX+Rg44cmQgAKmljjuM/8MahaIvfLBaRvlZgYU3eJ0peXrSplHTV7KWwmRQt6OrBcBfWxdxuTVaiqhY4ApFxwqkgUuValCWQ/ubboi5OiqFOK0ZG0wBVT6Ew0fwzAU9zj64Re1evCab5D4/YwFcpb0iow6RagQKI0zdQnm9k0oKNBFeMoBZe2NdOeaENuatkN24QVeJ7TPVwTjbrBxvsyWd8vj4ks/str2tuegbS2aNKJ6BWgq/ZwMFALv3dHDbpvh/cjX703oAo+2pyIB+gMT/i7OQD/ptiaoRZF+1QcTxIF+Cbdzj8mGCL8gKP7JDHq+xZ7QddepNbBqRuPQFbIDffpF2HKF7U7j5OPyUzse1Zl0cVqmiVvBsgFuRyndVHL/N2TCp8ZXStrK2axSFGU5yzuF+rgKA438DrIvNXMY+FwN0b+FWAgIyOohjOeM5rQqlD0G4GEXGZURQDR4W3wDz/GbtckpbDXV+8WN53gOc48jtGkZ42z9wvv6497NvUgjbdP0PjpmZHFduyVMWhAFs/WVDEljXVm+dTbK3eto1K20=
before_install:
# add node version, read from .nvmrc
- nvm install
# add components and targets
- rustup component add clippy
- rustup component add rustfmt
- rustup target add wasm32-unknown-unknown
# get wasm-pack, wasm-bindgen, install-update
- (test -x $HOME/.cargo/bin/wasm-pack || cargo install wasm-pack)
- (test -x $HOME/.cargo/bin/wasm-bindgen || cargo install wasm-bindgen-cli)
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- cargo install-update -a
# get the right npm version
- NPM_VERSION=`node -pe "require('./package.engines.json').npm"`
- if [ `npm --version` != "$NPM_VERSION" ]; then
npm install --global npm@${NPM_VERSION};
fi
# get the right yarn version
- YARN_VERSION=`node -pe "require('./package.engines.json').yarn"`
- if [ `yarn --version` != "$YARN_VERSION" ]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION;
export PATH=$HOME/.yarn/bin:$PATH;
fi
- yarn install
before_script:
# code climate's coverage reporter
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- './cc-test-reporter before-build'
script:
# build the wasm-modules before running the tests or a bunch of the tests time out
- cargo build
- yarn lint
- yarn test --forceExit
after_success:
- test $TRAVIS_PULL_REQUEST != "false" && npx semantic-release-github-pr
deploy:
# deploy a git tag, release notes, bump package.json, update READMEs
- provider: script
skip_cleanup: true
script: npx semantic-release
on:
branch: master
after_script:
# report coverage
- './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT'