2017-12-19 01:49:04 +03:00
|
|
|
language: rust
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-03-06 06:25:50 +03:00
|
|
|
# CLI builds on stable
|
|
|
|
- rust: stable
|
|
|
|
install: true
|
2018-03-29 18:50:08 +03:00
|
|
|
script: cargo build --manifest-path crates/cli/Cargo.toml
|
2018-03-06 06:25:50 +03:00
|
|
|
|
|
|
|
# Tests pass on nightly
|
2017-12-19 01:49:04 +03:00
|
|
|
- rust: nightly
|
2018-03-23 07:18:03 +03:00
|
|
|
before_install: rustup target add wasm32-unknown-unknown
|
|
|
|
script: cargo test
|
2018-04-03 19:34:37 +03:00
|
|
|
env: RUST_BACKTRACE=1
|
2018-05-31 01:03:17 +03:00
|
|
|
|
|
|
|
# WebIDL tests pass on nightly
|
|
|
|
- rust: nightly
|
|
|
|
before_install: rustup component add rustfmt-preview --toolchain nightly
|
|
|
|
script: (cd crates/webidl && cargo test)
|
|
|
|
env: RUST_BACKTRACE=1
|
2017-12-19 01:49:04 +03:00
|
|
|
|
2018-03-06 06:25:50 +03:00
|
|
|
# Dist linux binary
|
|
|
|
- env: TARGET=x86_64-unknown-linux-musl DEPLOY=1
|
2018-04-10 00:42:47 +03:00
|
|
|
rust: nightly
|
2018-03-06 06:25:50 +03:00
|
|
|
before_script: rustup target add $TARGET
|
2018-03-29 18:50:08 +03:00
|
|
|
script: cargo build --manifest-path crates/cli/Cargo.toml --release --target $TARGET
|
2018-04-25 21:42:22 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- musl-tools
|
2018-03-06 06:25:50 +03:00
|
|
|
|
|
|
|
# Dist OSX binary
|
|
|
|
- os: osx
|
2018-04-10 00:42:47 +03:00
|
|
|
rust: nightly
|
2018-03-06 06:25:50 +03:00
|
|
|
env: MACOSX_DEPLOYMENT_TARGET=10.7 DEPLOY=1 TARGET=x86_64-apple-darwin
|
2018-03-29 18:50:08 +03:00
|
|
|
script: cargo build --manifest-path crates/cli/Cargo.toml --release --target $TARGET
|
2018-03-23 07:18:03 +03:00
|
|
|
install: true
|
|
|
|
|
|
|
|
# We can build the tool on nightly
|
|
|
|
- rust: nightly
|
2018-03-29 18:50:08 +03:00
|
|
|
script: cargo install --debug --path crates/cli
|
2018-03-23 07:18:03 +03:00
|
|
|
|
|
|
|
# All examples work
|
|
|
|
- rust: nightly
|
|
|
|
before_install: rustup target add wasm32-unknown-unknown
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
(cd examples/hello_world && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
|
|
|
- |
|
|
|
|
(cd examples/smorgasboard && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
|
|
|
- |
|
|
|
|
(cd examples/console_log && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
|
|
|
- |
|
|
|
|
(cd examples/math && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
|
|
|
- |
|
|
|
|
(cd examples/dom && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
|
|
|
- |
|
|
|
|
(cd examples/wasm-in-wasm && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
2018-05-22 20:34:41 +03:00
|
|
|
- |
|
|
|
|
(cd examples/char && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
2018-04-10 00:41:24 +03:00
|
|
|
- |
|
|
|
|
(cd examples/closures && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
2018-03-06 06:25:50 +03:00
|
|
|
|
2018-05-22 20:34:41 +03:00
|
|
|
|
2018-01-09 01:53:52 +03:00
|
|
|
install:
|
|
|
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
|
|
|
- source ~/.nvm/nvm.sh
|
2018-05-06 00:10:25 +03:00
|
|
|
- nvm install 10
|
2018-03-03 01:20:05 +03:00
|
|
|
- yarn
|
2018-01-09 01:53:52 +03:00
|
|
|
|
2017-12-19 01:49:04 +03:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
|
2018-03-06 06:25:50 +03:00
|
|
|
before_deploy:
|
|
|
|
- name="wasm-bindgen-$TRAVIS_TAG-$TARGET"
|
|
|
|
- mkdir $name
|
|
|
|
- cp target/$TARGET/release/{wasm-bindgen,wasm2es6js} $name/
|
|
|
|
- cp README.md LICENSE-MIT LICENSE-APACHE $name/
|
|
|
|
- tar czvf $name.tar.gz $name
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
api_key:
|
|
|
|
secure: "qCiELnEnvyKpWHDttgTNf+ElZGbWlvthu5aOIj5nYfov+h6g1+mkWnDFP6at/WPlE78zE/f/z/dL2KB2I7w/cxH/T4P1nWh0A9DvrpY6hqWkK2pgN5dPeWE/a4flI7AdH0A6wMRw7m00uMgDjlzN78v7XueccpJCxSO5allQN5jweAQvMX2QA07TbLRJc7Lq6lfVwSf8OfrcO8qCbcIzJTsC4vtbh6jkUYg1OAaU2tAYlskBy9ZYmHWCExIAu/zxzcJY9OpApPD9Ea4CyrsfjniAyRBJ87Weh/sP4XhiWeRPVmvA4HAzv4Pps9ps+Ar5QmsX53rhKQ3id7/VPR8ggaAHxrYUiJPvJRtbP6cKKOlDiK0ooP+vI4vjxWeNVj9ibEolSYOlT0ENIvPK1BppA6VgAoJOjwPr0Q16Ma4AmvLkIkowJiXCm2Jlje/5c0vPEAGJVgUtkj3jFQzgXwyEMpzxUlhHmYpmnfeaM0tK/Kiiwe1monL/ydMlyfV55kNylylCg+XoTnf420AFChKbD4DM5Z7ZsjU9g8fF3LUoN0sKpmLDp+GvwjLi9YtGogWB71Q2MFp43MSL0YLshkyYYoZKrVMiy5J9hKNUxhT2jNEq53Z69syIHHMCxHL9GoAcuHxIKOA7uTMW0aCoyy2I+dfAKKsrUGwGYaNC5LZdUQI="
|
|
|
|
file_glob: true
|
|
|
|
file:
|
|
|
|
- wasm-bindgen-$TRAVIS_TAG-$TARGET.tar.gz
|
|
|
|
on:
|
|
|
|
condition: $DEPLOY = 1
|
|
|
|
tags: true
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true
|