Skip to content

Commit

Permalink
Starting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrprompt committed Dec 9, 2020
1 parent efb5414 commit d193fd9
Show file tree
Hide file tree
Showing 7 changed files with 2,399 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ composer.phar
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
.idea
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: php

env:
global:
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)

php:
- 7.3
- 7.4

matrix:
allow_failures:
- php: 7.4

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- if [ $(phpenv version-name) = "7.1" ]; then ./cc-test-reporter before-build; fi

install:
- composer install --dev --prefer-dist -o

script:
- ./vendor/bin/phpunit --coverage-clover clover.xml

after_script:
- if [ $(phpenv version-name) = "7.1" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT; fi
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "mrprompt/imovelweb-sdk",
"description": "SDK de Integra\u0000\u0000o com a Im\u0000vel Web",
"type": "library",
"require": {
"guzzlehttp/guzzle": "^7.2"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"license": "MIT",
"authors": [
{
"name": "Thiago Paes",
"email": "mrprompt@gmail.com"
}
],
"autoload": {
"psr-4": {
"MrPrompt\\ImovelWeb\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"MrPrompt\\ImovelWeb\\Tests\\": "tests/"
}
}
}
Loading

0 comments on commit d193fd9

Please sign in to comment.