Skip to content

Commit

Permalink
Enable Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkarp committed Jun 28, 2016
1 parent 52755cb commit 19e7c56
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: go
sudo: false
os:
- linux
- osx
go:
- 1.5
- 1.6
before_install: ./scripts/hack/symlink-gopath-travisci
install: make get-deps
script:
- cd $HOME/gopath/src/github.com/awslabs/amazon-ecr-credential-helper; make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $(LOCAL_BINARY): $(SOURCES)

.PHONY: test
test:
. ./scripts/shared_env && go test -v -timeout 30s -short -cover ./ecr-login/...
. ./scripts/shared_env && go test -v -timeout 30s -short -cover $(shell go list ./ecr-login/... | grep -v /vendor/)

.PHONY: gogenerate
gogenerate:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Amazon ECR Docker Credential Helper

The Amazon ECR Docker Credential Helper is a
[![Build Status](https://travis-ci.org/awslabs/amazon-ecr-credential-helper.svg?branch=travis)](https://travis-ci.org/awslabs/amazon-ecr-credential-helper)

The Amazon ECR Docker Credential Helper is a
[credential helper](https://github.com/docker/docker-credential-helpers)
for the Docker daemon that makes it easier to use
[Amazon EC2 Container Registry](https://aws.amazon.com/ecr/).
Expand Down
20 changes: 20 additions & 0 deletions scripts/hack/symlink-gopath-travisci
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may
# not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

# This script is meant to make all package available in the 'canonical' location
# when running on travis-ci
if [[ ! -d "$HOME/gopath/src/github.com/awslabs/amazon-ecr-credential-helper" ]]; then
mkdir -p "$HOME/gopath/src/github.com/awslabs"
ln -s "$(pwd)" "$HOME/gopath/src/github.com/awslabs/amazon-ecr-credential-helper"
fi

0 comments on commit 19e7c56

Please sign in to comment.