-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcircle.yml
35 lines (30 loc) · 1.17 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Customize the test machine
machine:
node:
version: 9.4.0
timezone:
America/Los_Angeles # Set the timezone
# Version of ruby to use
php:
version:
5.6.17
## Customize dependencies
dependencies:
pre:
- phpenv rehash
- npm install -g eslint
- npm install -g eslint-config-wordpress
- if [ ! -d /opt/circleci/php/$(phpenv global)/etc ]; then mkdir /opt/circleci/php/$(phpenv global)/etc; fi
- if [ ! -d /opt/circleci/php/$(phpenv global)/etc/conf.d ]; then mkdir /opt/circleci/php/$(phpenv global)/etc/conf.d; fi
- if [ ! -f /opt/circleci/php/$(phpenv global)/etc/conf.d/php.ini ]; then touch /opt/circleci/php/$(phpenv global)/etc/conf.d/php.ini; fi
- echo "memory_limit = 512M" >> /opt/circleci/php/$(phpenv global)/etc/php.ini
- echo "memory_limit = 512M" >> /opt/circleci/php/$(phpenv global)/etc/conf.d/php.ini
## Customize test commands
test:
override:
# Check for PHP errors.
- find . \( -name '*.php' \) -not -path "./vendor/*" -exec php -lf {} \;
# ESLint JS files.
- eslint ./js/rotator.js
# Check coding-standards.
- vendor/bin/phpcs -p -s -v -n *.php --standard=./phpcs.ruleset.xml --extensions=php