Skip to content

Commit

Permalink
Merge pull request #22 from dantleech/deploy_to_github
Browse files Browse the repository at this point in the history
Deploy PHAR to GH
  • Loading branch information
dantleech authored Jan 27, 2019
2 parents 26a65a0 + 8779f13 commit 73bc1c5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor
/bin/fink.phar
/.php_cs.cache
/composer.lock
/tests/Workspace
Expand Down
45 changes: 33 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
language: php

sudo: false

php:
- 7.1
- 7.2

cache:
directories:
- $HOME/.composer/cache
directories:
- "$HOME/.composer/cache"

before_script:
- composer install
- composer install

stages:
- qa
- deploy

jobs:
include:
- &QA
stage: qa
php: 7.1
script:
- "./vendor/bin/php-cs-fixer fix --dry-run"
- "./vendor/bin/phpstan analyse"
- "./vendor/bin/phpunit"
- <<: *QA
php: 7.2

script:
- ./vendor/bin/php-cs-fixer fix --dry-run
- ./vendor/bin/phpstan analyse
- ./vendor/bin/phpunit
- stage: Deploy
php: 7.1
script:
- "./vendor/bin/box compile"
deploy:
provider: releases
skip_cleanup: true
draft: true
api_key:
secure: "etKVc6Pd2hVkvLr3/RPE/7qFs72QGo4TDODvS5J4/aH02FfiNTOdjL4vt8GKZPm1P+RCeJPF33CQy6QiDHnkFs39xbOmVE9kyzVyOIB4YAqLKsKdyY53zQNxg8bc6MLRa2UeszshOTB8T+O+2rVhae42OjdroqACI46erWlZsEKIMCCZI/9k/mPeGkK3u8GEQ8Ih6qD3pBvx1eQBQmQ2ajlvnocWgqE9huYj6mKX6eQs+ewmW6cJBiRXLZetFH1kFG07C+BId+xQULWSWf9pGqxTe/yHtTnbmhCEd4PCdZMCzJo5OaE8f1lbuJmJTyxyNLjVX60Wim6QQKnmru59hYiGlj7kGn1YCtLxjP5xtmx+Y6nYZXVWOp9nRY+ur2CbAnkYz6OJQclGbINP2D2YfpVVqupHVP8x9oLlgLwrV9KxRM8G9b/zKPMK1y1rpGRnER5fgEaPiwLbYuJl5drJvkq31F013ZNkYmXQTUWSEsPGU8vN1D8XRa1+hfP1VYIHgvccxja7z8JnPBInl92X5p7uehkz4VCq3eZWDjxtkNVmRfqH+N6V7pGYvhFiQpu1+/IuH51xts/BLSwzD2sYcUXhxNZB1BqnzpUZGStCFdW+GfDuoaBKoNdWClhHnD20O07Oxd+upFxPgp05ZX4iCmZz9AquhPeA7WNRfov0M4E="
file: bin/fink.phar
on:
repo: dantleech/fink
tags: true
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"humbug/box": "^3.4",
"phpactor/test-utils": "^1.0",
"phpstan/phpstan": "^0.10.8",
"phpunit/phpunit": "^7.5"
Expand Down

0 comments on commit 73bc1c5

Please sign in to comment.