Skip to content

Commit 6a98faf

Browse files
committed
Only execute "coveralls" toxenv on master once
Just noticed that the "coveralls" env was being execute after each env. This was introduced by mistake in #2056
1 parent 38f7562 commit 6a98faf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ environment:
66
# https://www.appveyor.com/docs/build-configuration#secure-variables
77

88
matrix:
9+
# coveralls is not in the default env list
10+
- TOXENV: "coveralls"
911
# note: please use "tox --listenvs" to populate the build matrix below
1012
- TOXENV: "linting"
1113
- TOXENV: "py26"
@@ -36,7 +38,6 @@ install:
3638
build: false # Not a C# project, build stuff at the test step instead.
3739

3840
test_script:
41+
# if TOXENV is coveralls but %COVERALLS_REPO_TOKEN% is not defined (PRs or forks), skip it
42+
- if "%TOXENV%:%COVERALLS_REPO_TOKEN%" == "coveralls:" exit /b 0
3943
- C:\Python35\python -m tox
40-
# coveralls is not in tox's envlist, plus for PRs the secure variable
41-
# is not defined so we have to check for it
42-
- if defined COVERALLS_REPO_TOKEN C:\Python35\python -m tox -e coveralls

0 commit comments

Comments
 (0)