filters.tags empty then job is skipped for all tags

This commit is contained in:
zonyitoo
2020-05-17 22:15:58 +08:00
parent b2013ac5ce
commit 9c83eaaddc
2 changed files with 22 additions and 8 deletions
+17 -3
View File
@@ -224,11 +224,25 @@ workflows:
version: 2
build-releases:
jobs:
- build-linux
- build-windows
- build-docker
- build-linux:
filters:
tags:
only: /^v\d+\.\d+\.\d+(-alpha\.\d+)?$/
- build-windows:
filters:
tags:
only: /^v\d+\.\d+\.\d+(-alpha\.\d+)?$/
- build-docker:
filters:
tags:
only: /^v\d+\.\d+\.\d+(-alpha\.\d+)?$/
- publish-github-releases:
requires:
- build-linux
- build-windows
- build-docker
filters:
branches:
only: master
tags:
only: /^v\d+\.\d+\.\d+(-alpha\.\d+)?$/
+5 -5
View File
@@ -57,11 +57,11 @@ install:
script:
- cargo test --no-fail-fast
- cargo test --no-fail-fast --no-default-features
- cargo test --no-fail-fast --features aes-pmac-siv
- cargo test --no-fail-fast --features single-threaded
- cargo test --no-fail-fast --features openssl-vendored
- cargo test --no-fail-fast --no-default-features --features "local-http local-http-rustls"
# - cargo test --no-fail-fast --no-default-features
# - cargo test --no-fail-fast --features aes-pmac-siv
# - cargo test --no-fail-fast --features single-threaded
# - cargo test --no-fail-fast --features openssl-vendored
# - cargo test --no-fail-fast --no-default-features --features "local-http local-http-rustls"
- if [ "${TRAVIS_OS_NAME}" = "linux" -o "${TRAVIS_OS_NAME}" = "osx" ]; then
cargo test --no-fail-fast --features local-redir;
fi