Skip to content

Commit

Permalink
Add a build stage to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhkurve committed Sep 9, 2020
1 parent 33f32eb commit 66309ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ go:
stages:
- lint
- test
- build
- name: deploy
if: branch = master AND type = push and fork = false

Expand All @@ -23,14 +24,19 @@ docker_login:
jobs:
include:
- stage: lint
name: "Golangci Lint"
script: make golangci
- stage: test
name: "Run tests and publish coverage"
script:
- make testcodecov
- bash <(curl -s https://codecov.io/bash)
- stage: build
name: "Build albatross"
script: make clean build
- stage: deploy
before_script: *docker_login
name: build docker
name: "Publish docker image"
script:
- docker build -t gojektech/albatross:latest .
- docker images
Expand Down

0 comments on commit 66309ec

Please sign in to comment.