Tweak Travis/AppVeyor config

* Fix running dist builds on tags
* Only run dist builds on tags, no need to run the full matrix.
* Fix dist builds on AppVeyor to include `wasm-bindgen-test-runner.exe`
* Only cache `~/.cargo` on Travis for the guide build, the `target` dir changes
  too much to cache it.
This commit is contained in:
Alex Crichton 2018-07-26 11:28:14 -07:00
parent ba98491fc1
commit eda1033246
2 changed files with 8 additions and 9 deletions

View File

@ -33,6 +33,7 @@ before_deploy:
New-Item -Path $NAME -ItemType directory
Copy-Item target/release/wasm-bindgen.exe "${NAME}/"
Copy-Item target/release/wasm2es6js.exe "${NAME}/"
Copy-Item target/release/wasm-bindgen-test-runner.exe "${NAME}/"
Copy-Item LICENSE-MIT "${NAME}/"
Copy-Item LICENSE-APACHE "${NAME}/"
Copy-Item README.md "${NAME}/"

View File

@ -1,5 +1,6 @@
language: rust
sudo: false
if: branch = master
INSTALL_NODE_VIA_NVM: &INSTALL_NODE_VIA_NVM
- rustup target add wasm32-unknown-unknown
@ -13,7 +14,9 @@ DEPLOY_TO_GITHUB: &DEPLOY_TO_GITHUB
|
name="wasm-bindgen-$TRAVIS_TAG-$TARGET"
mkdir "$name"
cp "target/$TARGET/release/{wasm-bindgen,wasm2es6js,wasm-bindgen-test-runner}" "$name/"
cp "target/$TARGET/release/wasm-bindgen" "$name/"
cp "target/$TARGET/release/wasm2es6js" "$name/"
cp "target/$TARGET/release/wasm-bindgen-test-runner" "$name/"
cp README.md LICENSE-MIT LICENSE-APACHE "$name/"
tar czvf "$name.tar.gz" "$name"
deploy:
@ -26,6 +29,7 @@ DEPLOY_TO_GITHUB: &DEPLOY_TO_GITHUB
tags: true
provider: releases
skip_cleanup: true
if: branch = master OR tag IS present
matrix:
include:
@ -128,7 +132,8 @@ matrix:
- rust: nightly
env: JOB=guide-build-and-deploy
cache:
- cargo
directories:
- $HOME/.cargo
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
@ -143,13 +148,6 @@ matrix:
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
local-dir: guide/book
keep-history: false
on:
branch: master
branches:
only:
- master
- /\d/
notifications:
email: