From 70d1848ee80ea2d6c6f010de799bcbc785abb94a Mon Sep 17 00:00:00 2001 From: Maxim Sukharev Date: Wed, 6 Mar 2019 12:48:59 +0100 Subject: [PATCH] add integration test Signed-off-by: Maxim Sukharev --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 34b36907..08a4a0a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,12 @@ jobs: - make lint - make test-frontend - make test-coverage + - name: 'Integration Tests' + stage: test + script: + - make packages + - ./build/bin/bblfsh-web & + - curl 127.0.0.1:9999 | grep 'Babelfish Web' - name: 'Release' stage: release script: @@ -51,10 +57,10 @@ jobs: script: - make packages - DOCKER_PUSH_MASTER=true make docker-push - #HELM_RELEASE name is also harcoded in the .helm_staging file in order to use the AntiAffinity Rules. + #HELM_RELEASE name is also harcoded in the .helm_staging file in order to use the AntiAffinity Rules. - HELM_RELEASE=bblfsh-web HELM_CHART=bblfsh-web K8S_NAMESPACE=default HELM_ARGS="--repo https://src-d.github.io/charts/ --version 0.8.0 --set image.tag=dev-$(git rev-parse --short HEAD)-dirty -f .helm_staging.yml" make deploy - name: 'Deploy to production' stage: release-helm script: - #HELM_RELEASE name is also harcoded in the .helm_production file in order to use the AntiAffinity Rules. + #HELM_RELEASE name is also harcoded in the .helm_production file in order to use the AntiAffinity Rules. - B64_CA_CRT=$B64_CA_CRT_PROD SERVICE_ACCOUNT_TOKEN=$SERVICE_ACCOUNT_TOKEN_PROD CLUSTER_ENDPOINT=$CLUSTER_ENDPOINT_PROD HELM_RELEASE=bblfsh-web HELM_CHART=bblfsh-web K8S_NAMESPACE=default HELM_ARGS="--repo https://src-d.github.io/charts/ --version 0.8.0 --set image.tag=$TRAVIS_TAG -f .helm_production.yml" make deploy