Skip to content

Commit

Permalink
travis-ci: use docker registry mirror instead of docker login
Browse files Browse the repository at this point in the history
avoid external PR cannot be tested
  • Loading branch information
palxex committed Apr 11, 2021
1 parent 108297c commit 3e9aad3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ jobs:
- os: linux
env: TARGET=wii EXT=tar.bz2
before_install:
- echo 'DOCKER_OPTS="$DOCKER_OPTS --debug --registry-mirror=https://mirror.gcr.io"'
- sudo service docker restart
- docker system info
- export PUSHD="$(pwd)"
- mkdir -p $CACHE/
- cd $CACHE/
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker run -dit --name devkit -v $(pwd):/cache -v $TRAVIS_BUILD_DIR:/src devkitpro/devkitppc bash
- |
if ! [ -d $CACHE/sdl-wii ]
Expand All @@ -158,10 +160,12 @@ jobs:
services:
- docker
before_install:
- echo 'DOCKER_OPTS="$DOCKER_OPTS --debug --registry-mirror=https://mirror.gcr.io"'
- sudo service docker restart
- docker system info
- export PUSHD="$(pwd)"
- mkdir -p $CACHE/
- cd $CACHE/
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker run -dit --name devkit -v $(pwd):/cache -v $TRAVIS_BUILD_DIR:/src devkitpro/devkitarm bash
- |
if ! [ -d $CACHE/SDL-1.2-N3DS ]
Expand Down Expand Up @@ -300,7 +304,9 @@ jobs:
services:
- docker
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- echo 'DOCKER_OPTS="$DOCKER_OPTS --debug --registry-mirror=https://mirror.gcr.io"'
- sudo service docker restart
- docker system info
- docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:$TAG bash
script:
- sed -i 's@http://localhost:8080/@https://sdlpal.github.io/demo/@g' emscripten/Makefile
Expand Down

0 comments on commit 3e9aad3

Please sign in to comment.