tests: Use wget

This commit is contained in:
Hajime Hoshi 2019-12-28 00:43:02 +09:00
parent dc5392a73c
commit b5f2471a74

View File

@ -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