Skip to content

Commit

Permalink
Use generic language in Travis build (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Jun 5, 2017
1 parent 925dabf commit 00fbfa8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
sudo: required
dist: trusty

language: go
language: generic

go:
- 1.8.3

before_install:
install:
- mkdir -p $HOME/goroot
- curl -L https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -xz --strip-components=1 -C $HOME/goroot
- export GOROOT=$HOME/goroot
- export GOPATH=$HOME/gopath
- export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
- mkdir -p $GOPATH/src/github.com/autonomy/conform
- rsync -az ${TRAVIS_BUILD_DIR}/ $GOPATH/src/github.com/autonomy/conform/
- export TRAVIS_BUILD_DIR=$GOPATH/src/github.com/autonomy/conform
- cd $GOPATH/src/github.com/autonomy/conform
- sudo apt-get -y remove docker docker-engine
- sudo apt-get -y update
- sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- go get -u github.com/autonomy/conform
- go get github.com/autonomy/conform

script:
- conform enforce test
Expand Down

0 comments on commit 00fbfa8

Please sign in to comment.