Skip to content

Commit

Permalink
Use Fooman-mirror for Travis installation to avoid requiring credenti…
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed May 10, 2021
1 parent bc70f62 commit 192a2aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
env: M2_VERSION=2.3.6-p1
- php: 7.3
env: M2_VERSION=2.3.5
- php: 7.3
env: M2_VERSION=2.3.4
- php: 7.3
env: M2_VERSION=2.3.3
cache:
directories:
- $HOME/.composer/cache
Expand Down
10 changes: 2 additions & 8 deletions dev/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ fi
for envkey in \
MODULE_NAME \
MODULE_SRC_DIR \
M2_VERSION \
M2_REPO_USERNAME \
M2_REPO_PASSWORD
M2_VERSION
do
if [ -z "$(eval echo \$$envkey)" ]
then
Expand All @@ -40,17 +38,13 @@ then
MODULE_DST_DIR="$BUILD_DIR/app/code/$(echo $MODULE_NAME | sed 's/_/\//')"
fi

# Set composer authentication params
"$COMPOSER_BIN" config --global \
"http-basic.repo.magento.com" "$M2_REPO_USERNAME" "$M2_REPO_PASSWORD"

set -x

# Fetch Magento 2 source
"$COMPOSER_BIN" create-project \
--quiet \
--ignore-platform-reqs \
--repository-url=https://repo.magento.com/ \
--repository-url=https://repo-magento-mirror.fooman.co.nz/ \
magento/project-community-edition \
"$BUILD_DIR" "$M2_VERSION"

Expand Down

0 comments on commit 192a2aa

Please sign in to comment.