2018-03-06 06:25:50 +03:00
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
RUSTFLAGS: -Zunstable-options -Ctarget-feature=+crt-static
|
2018-04-03 18:46:02 +03:00
|
|
|
RUST_BACKTRACE: 1
|
2018-04-03 23:01:34 +03:00
|
|
|
CARGO_INCREMENTAL: 0 # should turn this back on when fixed!
|
2018-03-06 06:25:50 +03:00
|
|
|
matrix:
|
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
|
|
|
DEPLOY: 1
|
|
|
|
|
2017-12-19 01:49:04 +03:00
|
|
|
install:
|
2018-05-06 00:10:25 +03:00
|
|
|
- ps: Install-Product node 10
|
2017-12-19 01:49:04 +03:00
|
|
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
2018-03-06 06:25:50 +03:00
|
|
|
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
|
2017-12-19 01:49:04 +03:00
|
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
2017-12-19 01:55:25 +03:00
|
|
|
- rustup target add wasm32-unknown-unknown
|
2018-07-15 06:45:58 +03:00
|
|
|
- npm ci
|
2017-12-19 01:49:04 +03:00
|
|
|
- cargo test
|
2018-03-06 06:25:50 +03:00
|
|
|
- cargo build --release -p wasm-bindgen-cli
|
|
|
|
|
2018-07-06 23:29:25 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2018-03-06 06:25:50 +03: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 21:28:14 +03:00
|
|
|
Copy-Item target/release/wasm-bindgen-test-runner.exe "${NAME}/"
|
2018-03-06 06:25:50 +03: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
|
|
|
|
|