Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Added Travis build file with job matrix #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,43 @@
sudo: 'required'

language: go

go:
- 1.10.x
services:
- 'docker'

env:
global:
- ORGANIZATION=$DOCKER_USERNAME

matrix:
include:
- go: "1.11.x"
env: VERSION=0.4.1
fast_finish: true

before_install:
# We need golang/dep installed to resolve our dependencies
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure

script: make build test
script:
- 'make build test'
- 'make docker-image'

after_success:
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD;
make docker-push;
# - if [[ "$TRAVIS_BRANCH" == "master" ]]; then
# docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD;
# make docker-push;
# else
# echo "Build succeeded in non-master branch"
# fi

# Uncomment if only commits to master require builds
# branches:
# except:
# - master

notifications:
email: false
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
VERSION=$(shell git describe --always | sed 's|v\(.*\)|\1|')
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
OS:=$(shell uname -s | awk '{ print tolower($$1) }')
ARCH=amd64
ORGANIZATION=timescale
VERSION?=$(shell git describe --always | sed 's|v\(.*\)|\1|')
BRANCH?=$(shell git rev-parse --abbrev-ref HEAD)
OS?=$(shell uname -s | awk '{ print tolower($$1) }')
ARCH?=amd64
ORGANIZATION?=timescale

ifeq ($(shell uname -m), i386)
ARCH=386
Expand Down