From 482f8423d6a27d552787fecacdca37dc6cd20b35 Mon Sep 17 00:00:00 2001 From: Denis Makogon Date: Thu, 21 Sep 2017 01:05:48 +0300 Subject: [PATCH] Run API tests as separate task Before that we tested only SQLite, deployments we do are using MySQL. So, it's better to run that set of tests. --- .circleci/config.yml | 1 + test.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9d2f97068..63cef0e0d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,6 +33,7 @@ jobs: # login here for tests - run: docker login -u $DOCKER_USER -p $DOCKER_PASS - run: ./test.sh + - run: ./api_test.sh mysql 4 - deploy: command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then diff --git a/test.sh b/test.sh index 3235d4060..fe63f6e51 100755 --- a/test.sh +++ b/test.sh @@ -38,7 +38,7 @@ container_ip) ;; esac -go test -v $(go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v cli | grep -v tmp/go/src) +go test -v $(go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v cli | grep -v tmp/go/src | grep -v test/fn-api-tests) docker rm --force func-postgres-test docker rm --force func-mysql-test