Merged in KR-7471 (pull request #7029)

KR-7471: Enable CircleCI into the project: processmaker

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Milton Mendoza
2019-08-15 14:04:35 +00:00
committed by Julio Cesar Laura Avendaño

28
.circleci/config.yml Normal file
View File

@@ -0,0 +1,28 @@
version: 2
jobs:
build:
working_directory: ~/processmaker
docker:
- image: devopsstacks/pm:n225-phpunit
resource_class: large
branches:
only:
# Only executed circleci for this branch
- develop
- KR-7471
steps:
- checkout
- run: service mysqld restart
- run: yum -y install php71-imap
- run: mysql -u root -ppassword -e "create database test;"
- run: mysql -u root -ppassword -e "create database testexternal;"
- run: composer install
- run:
name: Run Test Units
command: |
mkdir coverage
vendor/phpunit/phpunit/phpunit --testdox-html coverage/result.html --coverage-html coverage tests/unit/
- store_artifacts:
path: coverage
destination: coverage