Skip to content

Commit

Permalink
Merge pull request #670 from SUSE/gocache-fix
Browse files Browse the repository at this point in the history
ci: change `$GOCACHE` to a writeable path
  • Loading branch information
vrothberg authored Aug 2, 2019
2 parents 634605d + 1494567 commit e1aacd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM ubuntu:18.04
RUN apt-get -qq update && \
apt-get install -y sudo docker.io git make btrfs-tools libdevmapper-dev libgpgme-dev libostree-dev

ADD https://storage.googleapis.com/golang/go1.11.1.linux-amd64.tar.gz /tmp
ADD https://storage.googleapis.com/golang/go1.11.12.linux-amd64.tar.gz /tmp

RUN tar -C /usr/local -xzf /tmp/go1.11.1.linux-amd64.tar.gz && \
rm /tmp/go1.11.1.linux-amd64.tar.gz && \
RUN tar -C /usr/local -xzf /tmp/go1.11.12.linux-amd64.tar.gz && \
rm /tmp/go1.11.12.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/* /usr/local/bin/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ script: >
-e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG
-e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_COMMIT=$TRAVIS_COMMIT
-e GOPATH=/gopath -e TRASH_CACHE=/gopath/.trashcache
-e GOCACHE=/tmp/gocache
-v /etc/passwd:/etc/passwd -v /etc/sudoers:/etc/sudoers -v /etc/sudoers.d:/etc/sudoers.d
-v /var/run:/var/run:z -v $HOME/gopath:/gopath:Z
-w /gopath/src/github.com/containers/image image-test bash -c "PATH=$PATH:/gopath/bin make cross tools .gitvalidation validate test test-skopeo SUDO=sudo BUILDTAGS=\"$BUILDTAGS\""

0 comments on commit e1aacd9

Please sign in to comment.