From d4f91abc2597efb6f82f8896941a85dd4e3e7927 Mon Sep 17 00:00:00 2001 From: Nikita Safonov Date: Thu, 30 Nov 2017 08:55:39 +0300 Subject: [PATCH] update php-cs-fixer to 2.7.1 (#15) * update php-cs-fixer to 2.7.1 * make docker login with password --- .travis.yml | 4 ++-- Dockerfile | 2 +- README.md | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4531214..031dd42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ matrix: fast_finish: true include: - env: - - PHP_CS_FIXER_VERSION=2.3.2 + - PHP_CS_FIXER_VERSION=2.7.1 - IS_LATEST=1 before_script: @@ -28,7 +28,7 @@ script: - cmp Sample.after Sample.php after_success: - - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; + - echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin; - if [[ $TRAVIS_BRANCH ]] && [[ -z $TRAVIS_TAG ]]; then docker push herloct/php-cs-fixer:$PHP_CS_FIXER_VERSION-$TRAVIS_BRANCH; fi diff --git a/Dockerfile b/Dockerfile index e8e792c..a1639fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM php:7.1.5-alpine MAINTAINER herloct -ENV PHP_CS_FIXER_VERSION=2.3.2 +ENV PHP_CS_FIXER_VERSION=2.7.1 RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar > /usr/local/bin/php-cs-fixer \ && chmod +x /usr/local/bin/php-cs-fixer \ diff --git a/README.md b/README.md index 8bbdadb..3aa9d57 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ ## Supported tags and respective `Dockerfile` links -* [`2.3.2`, `latest`](https://github.com/herloct/docker-php-cs-fixer/blob/2.3.2/Dockerfile) +* [`2.7.1`, `latest`](https://github.com/herloct/docker-php-cs-fixer/blob/2.7.1/Dockerfile) +* [`2.3.2`](https://github.com/herloct/docker-php-cs-fixer/blob/2.3.2/Dockerfile) * [`2.3.1`](https://github.com/herloct/docker-php-cs-fixer/blob/2.3.1/Dockerfile) * [`2.2.4`](https://github.com/herloct/docker-php-cs-fixer/blob/2.2.4/Dockerfile) * [`2.2.3`](https://github.com/herloct/docker-php-cs-fixer/blob/2.2.3/Dockerfile)