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:
28
.circleci/config.yml
Normal file
28
.circleci/config.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user