2018-03-05 19:25:50 -08:00
|
|
|
environment:
|
|
|
|
global:
|
2018-09-12 11:08:19 -07:00
|
|
|
RUSTFLAGS: -Ctarget-feature=+crt-static
|
2018-04-03 08:46:02 -07:00
|
|
|
RUST_BACKTRACE: 1
|
2018-03-05 19:25:50 -08:00
|
|
|
matrix:
|
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
|
|
|
DEPLOY: 1
|
|
|
|
|
2017-12-18 14:49:04 -08:00
|
|
|
install:
|
2018-05-05 14:10:25 -07:00
|
|
|
- ps: Install-Product node 10
|
2017-12-18 14:49:04 -08:00
|
|
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
2018-03-05 19:25:50 -08:00
|
|
|
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
|
2017-12-18 14:49:04 -08:00
|
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
2017-12-18 14:55:25 -08:00
|
|
|
- rustup target add wasm32-unknown-unknown
|
2018-08-27 19:02:26 -07:00
|
|
|
- npm install
|
2017-12-18 14:49:04 -08:00
|
|
|
- cargo test
|
2018-03-05 19:25:50 -08:00
|
|
|
- cargo build --release -p wasm-bindgen-cli
|
2018-08-12 23:42:23 -04:00
|
|
|
- where chromedriver
|
|
|
|
- set CHROMEDRIVER=C:\Tools\WebDriver\chromedriver.exe
|
|
|
|
- cargo test -p js-sys --target wasm32-unknown-unknown
|
|
|
|
- cargo test -p webidl-tests --target wasm32-unknown-unknown
|
2018-09-06 15:07:04 -07:00
|
|
|
# Try just a few features for `web-sys`, unfortunately the whole crate blows
|
|
|
|
# system command line limits meaning we can't even spawn rustc to enable all
|
|
|
|
# the features.
|
2018-09-06 16:22:19 -07:00
|
|
|
- cargo build --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --features "Node Window Document"
|
2018-03-05 19:25:50 -08:00
|
|
|
|
2018-07-06 13:29:25 -07:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-08-27 17:34:35 -07:00
|
|
|
- /^\d/
|
2018-07-06 13:29:25 -07:00
|
|
|
|
2018-03-05 19:25:50 -08:00
|
|
|
before_deploy:
|
|
|
|
- ps: |
|
|
|
|
$NAME = "wasm-bindgen-${env:APPVEYOR_REPO_TAG_NAME}-${env:TARGET}"
|
|
|
|
New-Item -Path $NAME -ItemType directory
|
|
|
|
Copy-Item target/release/wasm-bindgen.exe "${NAME}/"
|
|
|
|
Copy-Item target/release/wasm2es6js.exe "${NAME}/"
|
2018-07-26 11:28:14 -07:00
|
|
|
Copy-Item target/release/wasm-bindgen-test-runner.exe "${NAME}/"
|
2018-03-05 19:25:50 -08:00
|
|
|
Copy-Item LICENSE-MIT "${NAME}/"
|
|
|
|
Copy-Item LICENSE-APACHE "${NAME}/"
|
|
|
|
Copy-Item README.md "${NAME}/"
|
|
|
|
7z a -ttar "${NAME}.tar" "${NAME}"
|
|
|
|
7z a "${NAME}.tar.gz" "${NAME}.tar"
|
|
|
|
Push-AppveyorArtifact "${NAME}.tar.gz"
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
artifact: /.*\.tar.gz/
|
|
|
|
auth_token:
|
|
|
|
secure: dtHSvbZkdAFtL0J5YrSw8DpxjfYuHWgqD1SupmJT/yfYSjEBiX55RFXRoqBM2tx1
|
|
|
|
description: ''
|
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true
|
|
|
|
provider: GitHub
|
|
|
|
|