This commit is contained in:
Vincent Prouillet 2018-08-03 22:34:56 +02:00
parent 8fcb4c3ae6
commit fb6e3bd5cc
2 changed files with 1 additions and 10 deletions

View file

@ -34,18 +34,11 @@ before_deploy:
deploy: deploy:
artifact: /.*\.zip/ artifact: /.*\.zip/
# TODO update `auth_token.secure`
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
# - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt
# - Paste the output down here
auth_token: auth_token:
secure: YCRPSTItx+m/3jnDfai52dEZNLYUTSEExF2lZoffULDzlv/t2jOR1fzSSIEi/xyB secure: YCRPSTItx+m/3jnDfai52dEZNLYUTSEExF2lZoffULDzlv/t2jOR1fzSSIEi/xyB
description: '' description: ''
on: on:
# In this example, there are some targets that are tested using the stable RUST_VERSION: stable
# and nightly channels. This condition makes sure there is only one release
# for such targets and that's generated using the stable channel
RUST_VERSION: 1.25.0
appveyor_repo_tag: true appveyor_repo_tag: true
provider: GitHub provider: GitHub

View file

@ -4,14 +4,12 @@ set -ex
# TODO This is the "test phase", tweak it as you see fit # TODO This is the "test phase", tweak it as you see fit
main() { main() {
cross build --target $TARGET
cross build --target $TARGET --release cross build --target $TARGET --release
if [ ! -z $DISABLE_TESTS ]; then if [ ! -z $DISABLE_TESTS ]; then
return return
fi fi
cross test --all --target $TARGET
cross test --all --target $TARGET --release cross test --all --target $TARGET --release
} }