From b5f2471a74460cb8ca99cb84f8b037e711908cb5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 28 Dec 2019 00:43:02 +0900 Subject: [PATCH] tests: Use wget --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a8424cf91..7c02cebf8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ install: - go mod init example.com/m - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then go get github.com/hajimehoshi/ebiten@$TRAVIS_COMMIT; fi - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go get github.com/hajimehoshi/ebiten; fi - - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then curl -L -o ebiten.zip https://github.com/$TRAVIS_PULL_REQUEST_SLUG/archive/$TRAVIS_COMMIT.zip; fi + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then wget -O ebiten.zip https://github.com/$TRAVIS_PULL_REQUEST_SLUG/archive/$TRAVIS_COMMIT.zip; fi - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then unzip ebiten.zip; fi - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mv ./ebiten-$TRAVIS_COMMIT ebiten; fi - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go mod edit -replace=github.com/hajimehoshi/ebiten=./ebiten; fi @@ -51,8 +51,8 @@ install: - GO111MODULE=off go1.12.14 get github.com/gopherjs/gopherjs - mkdir -p $GOPATH/src/github.com/hajimehoshi - cd $GOPATH/src/github.com/hajimehoshi - - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then curl -L -o ebiten.zip https://github.com/hajimehoshi/ebiten/archive/$TRAVIS_COMMIT.zip; fi - - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then curl -L -o ebiten.zip https://github.com/$TRAVIS_PULL_REQUEST_SLUG/archive/$TRAVIS_COMMIT.zip; fi + - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget -O ebiten.zip https://github.com/hajimehoshi/ebiten/archive/$TRAVIS_COMMIT.zip; fi + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then wget -O ebiten.zip https://github.com/$TRAVIS_PULL_REQUEST_SLUG/archive/$TRAVIS_COMMIT.zip; fi - unzip ebiten.zip - mv ./ebiten-$TRAVIS_COMMIT ebiten - cd ./ebiten