Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 4898a79

Browse files
committed
Using if instead of exclude in travis.yml
1 parent e9d20dc commit 4898a79

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.travis.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ matrix:
1717
- WHAT=test
1818
- TOOLCHAIN=archlinux
1919
- RELEASE_FILE=task-maker-${TRAVIS_TAG}_archlinux_amd64.tar.xz
20-
- env:
20+
- if: NOT branch =~ /^v.*/
21+
env:
2122
- WHAT=test
2223
- TOOLCHAIN=archlinux-clang
2324
- ADDRESSSANITIZER=ON
24-
branches:
25-
except:
26-
- /^v.*/
27-
- env:
25+
- if: NOT branch =~ /^v.*/
26+
env:
2827
- WHAT=test-AUR-package
2928
- TOOLCHAIN=archlinux
3029
script:
@@ -33,10 +32,8 @@ matrix:
3332
-v $(pwd):/build
3433
edomora97/task-maker-builder-archlinux:latest
3534
/build/tools/test_aur_package.sh
36-
branches:
37-
except:
38-
- /^v.*/
39-
- env:
35+
- if: NOT branch =~ /^v.*/
36+
env:
4037
- WHAT=clang-tidy
4138
- TOOLCHAIN=archlinux-clang
4239
script:
@@ -52,9 +49,6 @@ matrix:
5249
--cap-add SYS_PTRACE
5350
edomora97/task-maker-builder-$TOOLCHAIN:latest
5451
/build/tools/compile_and_lint.sh
55-
branches:
56-
except:
57-
- /^v.*/
5852
- os: osx
5953
env:
6054
- WHAT=test

0 commit comments

Comments
 (0)