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.
This commit is contained in:
Denis Makogon
2017-09-21 01:05:48 +03:00
parent 0cc4a8f74a
commit 482f8423d6
2 changed files with 2 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ jobs:
# login here for tests # login here for tests
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS - run: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: ./test.sh - run: ./test.sh
- run: ./api_test.sh mysql 4
- deploy: - deploy:
command: | command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then if [ "${CIRCLE_BRANCH}" == "master" ]; then

View File

@@ -38,7 +38,7 @@ container_ip)
;; ;;
esac 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-postgres-test
docker rm --force func-mysql-test docker rm --force func-mysql-test