Make travis work only on test branches

This commit is contained in:
Syrus 2019-11-22 09:55:31 -08:00
parent a691d3454c
commit 183dd328d6

View File

@ -24,6 +24,7 @@ script:
# Tests # Tests
- make spectests-singlepass - make spectests-singlepass
before_deploy:
# Release # Release
- make release-singlepass - make release-singlepass
- make wapm - make wapm
@ -31,12 +32,12 @@ script:
- mkdir -p artifacts - mkdir -p artifacts
- cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh) - cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh)
before_deploy: # before_deploy:
# Set up git user name and tag this commit # # Set up git user name and tag this commit
- git config --local user.name "Syrus Akbary" # - git config --local user.name "Syrus Akbary"
- git config --local user.email "syrus@wasmer.io" # - git config --local user.email "syrus@wasmer.io"
- export TRAVIS_TAG="0.10.2" # - export TRAVIS_TAG="0.10.2"
# - git tag $TRAVIS_TAG # # - git tag $TRAVIS_TAG
deploy: deploy:
provider: releases provider: releases
@ -46,8 +47,8 @@ deploy:
# This is set to the previous artifacts are not deleted by travis # This is set to the previous artifacts are not deleted by travis
skip_cleanup: true skip_cleanup: true
on: on:
branch: feature/singlepass-aarch64 tags: true
# branch: feature/singlepass-aarch64
addons: addons:
apt: apt:
@ -56,4 +57,6 @@ addons:
branches: branches:
only: only:
- feature/singlepass-aarch64 - master
- staging
- trying