Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Setup Travis CI for testing.
Browse files Browse the repository at this point in the history
* move code under test to gopkg.in/amz.v1 folder
  • Loading branch information
nathany committed Jan 3, 2015
1 parent 3cf56f1 commit 9f424a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sudo: false
language: go

go:
- 1.2
- 1.4

install:
- go get gopkg.in/check.v1

before_script:
- export DEFAULT_TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/gopkg.in/amz.v1
- mkdir -p $TRAVIS_BUILD_DIR
- mv -vfT $DEFAULT_TRAVIS_BUILD_DIR $TRAVIS_BUILD_DIR

script:
- go build ./...
- go test -v ./...
- FIXED=$(go fmt ./... | wc -l); if [ $FIXED -gt 0 ]; then echo "gofmt - $FIXED file(s) not formatted correctly, please run gofmt to fix this." && exit 1; fi
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ goamz

Go package to interact with Amazon Web Services

[![Build Status](https://travis-ci.org/go-amz/amz.svg)](https://travis-ci.org/go-amz/amz)

Instructions
------------

Expand Down

0 comments on commit 9f424a6

Please sign in to comment.