Skip to content

Commit

Permalink
Feature/add travis ci3 (#7)
Browse files Browse the repository at this point in the history
* chore: πŸ€– run test

* chore: πŸ€– swtich travis lang to bash

* chore: πŸ€– rename to .travis.yml

* chore: πŸ€– switch lang to go

* chore: πŸ€– test stage

* fix: πŸ› yaml

* fix: πŸ› fix yaml

* chore: πŸ€– build docker

* fix: πŸ› yaml

* chore: πŸ€– add git tag to docker build

* chore: πŸ€– fix syntax

* chore: πŸ€– add if tag

* chore: πŸ€– fix stage name

* fix: πŸ› indent
  • Loading branch information
jaskaransarkaria authored Jun 21, 2020
1 parent a86f5d2 commit f5e4fb5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: go
go:
- 1.14.2

services:
- docker

jobs:
include:
- stage: "Tests and Linting"
name: "Linting"
script: go vet ./...
name: "Unit Tests"
script: go test -v ./...
- stage: "Build and Push Image"
name: "Build docker image"
script: docker build -t jaskaransarkaria/timer-server:"${TRAVIS_TAG}" .

stages:
- Tests and Linting
- name: "Build and Push Image"
if: tag IS present
9 changes: 0 additions & 9 deletions travis.yml

This file was deleted.

0 comments on commit f5e4fb5

Please sign in to comment.