Skip to content

Commit

Permalink
Fixing merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
zzantares committed Jul 13, 2014
2 parents 0be98ef + 3dd398b commit 852e216
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@ composer.phar
composer.lock
.idea/
atlassian-ide-plugin.xml
ocular.phar
.reports/
31 changes: 26 additions & 5 deletions .travis.yml
@@ -1,10 +1,31 @@
language: php
php:
- "5.5"
- "5.4"
- "5.3"
- 5.6
- 5.5
- 5.4
- 5.3
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- composer install
- composer self-update
- composer install --prefer-source

script:
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./src/ --standard=PSR1 --encoding=utf-8 --report=summary
- php vendor/bin/phpcs ./src/ --standard=PSR2 --encoding=utf-8 --report=summary
# PHPUnit tests
- php vendor/bin/phpunit --configuration phpunit.xml --coverage-clover=.reports/clover.xml

after_success:
# Send cover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover .reports/clover.xml

script: phpunit --configuration phpunit.xml --coverage-text
git:
depth: 1
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -25,7 +25,8 @@
},

"require-dev": {
"phpunit/phpunit": "~4.1"
"phpunit/phpunit": "~4.1",
"squizlabs/php_codesniffer": "1.*"
},

"autoload": {
Expand Down
12 changes: 12 additions & 0 deletions runTests.sh
@@ -0,0 +1,12 @@
#!/bin/sh

composer install

# Code style
php vendor/bin/phpcs ./src/ --standard=PSR1 --encoding=utf-8 --report=emacs
php vendor/bin/phpcs ./src/ --standard=PSR2 --encoding=utf-8 --report=emacs

# PHPUnit tests
php vendor/bin/phpunit --coverage-html .reports

# open .reports/index.html
1 change: 0 additions & 1 deletion src/Proxmox.php
Expand Up @@ -478,5 +478,4 @@ protected function loginUsingCredentials($credentials)
//$error = "This can't happen, run in circles or do something else.";
//throw new \RuntimeException($error);
}

}

0 comments on commit 852e216

Please sign in to comment.