-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from phalcon/1.0.0
1.0.0
- Loading branch information
Showing
202 changed files
with
8,921 additions
and
3,535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ Thumbs.db | |
*.sublime-project | ||
*.sublime-workspace | ||
.idea/ | ||
vendor/ | ||
composer.phar | ||
/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.