Skip to content

Commit

Permalink
Merge pull request #87 from phalcon/1.0.0
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
Jeckerson authored Jan 19, 2020
2 parents b06932d + ec499d4 commit 893a052
Show file tree
Hide file tree
Showing 202 changed files with 8,921 additions and 3,535 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DB_ADAPTER=Mysql
DB_HOST=localhost
DB_USERNAME=root
DB_PASSWORD=
DB_DBNAME=invo
DB_CHARSET=utf8

VIEWS_DIR=themes/invo/
BASE_URI=/
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Main CI

on: [push, pull_request]

env:
DB_HOST: '127.0.0.1'

jobs:
run:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
steps:
- uses: actions/checkout@v1

- name: Init Database
run: |
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS `invo`;'
- name: Copy .env file
run: cp .env.example .env

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: '7.2'
tools: pecl
extensions: mbstring, intl, json, phalcon4
coverage: xdebug

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run Psalm
if: always()
run: vendor/bin/psalm --show-info=false

- name: Run tests
if: always()
run: |
sudo php -S 0.0.0.0:90 -t public/ &
vendor/bin/codecept build
vendor/bin/codecept run acceptance
vendor/bin/codecept run unit --coverage-xml=unit-coverage.xml
vendor/bin/codecept run functional --coverage-xml=functional-coverage.xml
- name: Upload coverage to Codecov
if: always()
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./tests/_output/*-coverage.xml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ Thumbs.db
*.sublime-project
*.sublime-workspace
.idea/
vendor/
composer.phar
/.env
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2011-present, Phalcon Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 6 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,17 @@ switch to the relevant branch.

### Requirements

* PHP >= 5.4
* PHP >= 7.2
* [Apache][2] Web Server with [mod_rewrite][3] enabled or [Nginx][4] Web Server
* Latest stable [Phalcon Framework release][5] extension enabled
* [MySQL][6] >= 5.1.5
* [MySQL][6] >= 5.5

### Installation

First you need to clone this repository:

```
$ git clone [email protected]:phalcon/invo.git
```

Then you'll need to create the database and initialize schema:

```sh
$ echo 'CREATE DATABASE invo CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root
$ cat schemas/invo.sql | mysql -u root invo
```

Also you can override application config by creating `app/config/config.ini.dev` (already gitignored).
1. Copy project to local environment - `git clone [email protected]:phalcon/invo.git`
2. Copy file `cp .env.example .env`
3. Edit .env file with your DB connection information
4. Run DB migrations `vendor/bin/phalcon-migrations migration run --config=migrations.php`

## Contributing

Expand Down
129 changes: 0 additions & 129 deletions app/Services.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/config/config.ini

This file was deleted.

20 changes: 0 additions & 20 deletions app/config/loader.php

This file was deleted.

15 changes: 0 additions & 15 deletions app/controllers/AboutController.php

This file was deleted.

Loading

0 comments on commit 893a052

Please sign in to comment.