Skip to content

Commit

Permalink
Update Travis CI config
Browse files Browse the repository at this point in the history
- Remove unnecessary environment variable GITHUB_OAUTH_TOKEN (former API limit has been [removed](composer/composer#4884 (comment)) in 2016)
- Remove manual doctrine/instantiator downgrade
- We support only PHP 7.3 and 7.4 as well as M2 starting from v2.3.3 (former versions reached EOL)
  • Loading branch information
fnogatz committed May 1, 2021
1 parent ce579c2 commit 0164eb7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
language: php
php:
- 7.2
- 7.1
- 7.4
- 7.3
env:
- M2_VERSION=2.3.2
- M2_VERSION=2.3.1
- M2_VERSION=2.3.0
matrix:
- M2_VERSION=2.4.2
- M2_VERSION=2.4.1
- M2_VERSION=2.4.0
jobs:
include:
- php: 7.1
env: M2_VERSION=2.2.9
- php: 7.0
env: M2_VERSION=2.2.9
- php: 7.3
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
11 changes: 1 addition & 10 deletions dev/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ for envkey in \
MODULE_SRC_DIR \
M2_VERSION \
M2_REPO_USERNAME \
M2_REPO_PASSWORD \
GITHUB_OAUTH_TOKEN
M2_REPO_PASSWORD
do
if [ -z "$(eval echo \$$envkey)" ]
then
Expand All @@ -44,8 +43,6 @@ fi
# Set composer authentication params
"$COMPOSER_BIN" config --global \
"http-basic.repo.magento.com" "$M2_REPO_USERNAME" "$M2_REPO_PASSWORD"
"$COMPOSER_BIN" config --global \
"github-oauth.github.com" "$GITHUB_OAUTH_TOKEN"

set -x

Expand All @@ -57,12 +54,6 @@ set -x
magento/project-community-edition \
"$BUILD_DIR" "$M2_VERSION"

# Downgrade doctrine/instantiator for PHP < 7.1 support
"$COMPOSER_BIN" require \
--working-dir="$BUILD_DIR" \
--ignore-platform-reqs \
doctrine/instantiator:v1.0.5

# Copy module into Magento
mkdir -p "$(dirname "$MODULE_DST_DIR")"
cp -r "$MODULE_SRC_DIR" "$MODULE_DST_DIR"
Expand Down

0 comments on commit 0164eb7

Please sign in to comment.