/
.travis.yml
64 lines (60 loc) · 2.18 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
language: rust
sudo: required
dist: trusty
addons:
apt:
packages:
- libssl-dev
cache: cargo
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: stable
- rust: beta
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
before_script: |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install 8.9.3
if hash wasm-pack 2>/dev/null; then
echo "Wasm-pack already is installed"
else
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
fi
script:
- cargo clean
- cargo build
- cargo test
- wasm-pack build --target nodejs
# Someday, it'd be nice to get this to build on travis. Right now, it's manual.
- cd integration && npm install && npm test
before_deploy:
- cd pkg
deploy:
# Deploy wasm package to npm
- provider: npm
email: jaywir3@gmail.com
on:
tags: true
skip_cleanup: true
api_key:
secure: TOelLX+Vccjwkc/HRB5LrXJEjNzSYpJgUJ+kmpuAD+rji7zlFNpYpcNqYGvqrEMbLxHvlzA8NiRh1JM4qizeXpkOv8pi6GCbYkZnhNcsHyxwEqZTZ11LfpqZjlMa4x/7/xcijaAGBIwYHEATL8APyOiK4JHW75DH9ttrn47zn66UhySN2Upafr+SRzegk5LgamuahdjGHviWnnk6XL6QArFKiyeZbP7fuj03siGATfB8surnUrYNO1t6EcppR820d8v0Vv9uMCwOUb7PEgiX2lXhIQuRwgyxF90fNoo2AfB+jHY+y0wiVAm01l0NEaXtR42/bgSF4E3GlYkGCNuiW8CJjlhLEVP/WFjQ6WHGyiOVKHzTesdDWMzhauKzXys7G2YxwU4P9JKfRSoAX6DYLd6OfFuh7FHpo92cxYYx3LvfIYzujMvdAX8lRrJ7vbmbcxsonBav9R09jGiYZIhlS9owpPzimxT0/PH1PzxPgeq5q8I6VBf8FsF5TQ+32KLY7/ajV+ePlQzQly0097boxCgewn+BDqKqGsbPazp+BQGTa75AYT34pss8/seO/8zPbZfU7TTHa/fi5kYm4tXek1U6LKcOIMWWO9l6R/CLFw/U9vFWEnMB5SHM5FNGVpZ4UDibHh9wfNMMllZheer1mpHxKmHFqy1sE89E1cIxW9A=
# Deploy rust crate to crates.io
- provider: script
script: cargo publish --token $TRAVIS_CRATES_TOKEN
skip_cleanup: true
on:
tags: true
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
# Uncomment the following line for coveralls.io
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
# Uncomment the following two lines create and upload a report for codecov.io
# cargo tarpaulin --out Xml
# bash <(curl -s https://codecov.io/bash)
fi