Skip to content

Commit c7a1378

Browse files
author
Junfeng Li
committed
Don't run test when deploy.
1 parent f2f564b commit c7a1378

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

ci/script.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ set -o nounset
44
set -o errexit
55
set -o xtrace
66

7-
make test
7+
function main() {
8+
make test
89

9-
if command -v docker > /dev/null ; then
10-
make integration-test-docker
10+
if command -v docker > /dev/null ; then
11+
make integration-test-docker
12+
fi
13+
}
14+
15+
# we don't run the "test phase" when doing deploys
16+
if [ -z $TRAVIS_TAG ]; then
17+
main
1118
fi

0 commit comments

Comments
 (0)