Skip to content

Commit

Permalink
update php-cs-fixer to 2.7.1 (#15)
Browse files Browse the repository at this point in the history
* update php-cs-fixer to 2.7.1

* make docker login with password
  • Loading branch information
ns3777k authored and herloct committed Nov 30, 2017
1 parent ec520b5 commit d4f91ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:7.1.5-alpine

MAINTAINER herloct <herloct@gmail.com>

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 \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d4f91ab

Please # to comment.