Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Sukharev <[email protected]>
  • Loading branch information
smacker committed Mar 6, 2019
1 parent 6ed192d commit 70d1848
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 70d1848

Please sign in to comment.