-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
24 lines (24 loc) · 953 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sudo: required
services:
- docker
- postgresql
language: go
go:
- 1.14.1
env:
- GO15VENDOREXPERIMENT=1
before_install:
- go get github.com/jteeuwen/go-bindata/...
- go get github.com/Masterminds/glide
install:
- bash build_assets.bash production
- glide install
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
script:
- go test -race -v `go list ./... | grep -v /vendor/`
after_success:
- bash build.bash production
- if [[ "$TRAVIS_PULL_REQUEST" -eq "false" ]]; then docker login --username="$DOCKER_USERNAME" --password="$DOCKER_PASSWORD"; fi
- if [[ "$TRAVIS_PULL_REQUEST" -eq "false" ]]; then case $TRAVIS_BRANCH in master) docker build -t tf2stadium/helen:latest . ;; dev) docker build -t tf2stadium/helen:dev . ;; esac ; fi
- if [[ "$TRAVIS_PULL_REQUEST" -eq "false" ]]; then case $TRAVIS_BRANCH in master) docker push tf2stadium/helen:latest ;; dev) docker push tf2stadium/helen:dev ;; esac; fi