Skip to content

Commit

Permalink
Update binary
Browse files Browse the repository at this point in the history
* Update phpmetrics binary.
* Run junit test too.
  • Loading branch information
herloct authored Apr 13, 2017
1 parent 24ce9a5 commit 90bf8a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ matrix:
include:
- php: '7.1'
env:
- PHP_METRICS_VERSION=2.1.0
- PHP_METRICS_VERSION=2.2.0
- IS_LATEST=1

before_script:
Expand All @@ -23,9 +23,13 @@ before_script:
script:
- cd Slim
- git checkout 3.8.1
- composer install
- docker run --rm --user $(id -u):$(id -g)
--volume $(pwd):/project --workdir /project
php:7.1.3-alpine php vendor/bin/phpunit --log-junit=build/junit.xml
- docker run --rm --user $(id -u):$(id -g)
--volume $(pwd):/project
herloct/phpmetrics:$PHP_METRICS_VERSION-$TRAVIS_BRANCH --report-html=build/metrics Slim
herloct/phpmetrics:$PHP_METRICS_VERSION-$TRAVIS_BRANCH --report-html=build/metrics --junit=build/junit.xml Slim
- ls -la build/metrics
- if [[ ! -f "build/metrics/index.html" ]]; then exit 1; 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.3-alpine

MAINTAINER herloct <herloct@gmail.com>

ENV PHP_METRICS_VERSION=2.1.0
ENV PHP_METRICS_VERSION=2.2.0

RUN curl -L https://github.com/phpmetrics/PhpMetrics/releases/download/v$PHP_METRICS_VERSION/phpmetrics.phar > /usr/local/bin/phpmetrics \
&& chmod +x /usr/local/bin/phpmetrics \
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.1.0`, `latest`](https://github.com/herloct/docker-phpmetrics/blob/2.1.0/Dockerfile)
* [`2.2.0`, `latest`](https://github.com/herloct/docker-phpmetrics/blob/2.2.0/Dockerfile)
* [`2.1.0`](https://github.com/herloct/docker-phpmetrics/blob/2.1.0/Dockerfile)
* [`2.0.0`](https://github.com/herloct/docker-phpmetrics/blob/2.0.0/Dockerfile)

## What is PhpMetrics?
Expand Down

0 comments on commit 90bf8a4

Please sign in to comment.