Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Check commit messages with Gnitpick and minor Travis-CI syntax fixes #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# This uses newer and faster docker based build system
sudo: false

language: php
os: linux

services: mysql

notifications:
on_success: never
on_failure: change

php:
- nightly
- 7.2
- 7.3
- nightly

env:
- WP_TEST_URL=http://localhost:12000 WP_TEST_USER=test WP_TEST_USER_PASS=test DB_USER=root DB_PASSWORD='' DB_NAME=test

matrix:
jobs:
include:
- name: Gnitpick
language: python
services: # none
install:
- curl -O https://raw.githubusercontent.com/Seravo/gnitpick/master/gnitpick.py
script:
- python3 ./gnitpick.py
allow_failures:
- php: nightly

before_install:
- rvm install 2.2.5

before_script:
install:
# Downgrade Composer to latest 1.x series
- composer self-update 1.10.16
# Install composer packages before trying to activate themes or plugins
Expand Down Expand Up @@ -54,6 +53,7 @@ before_script:
script:
# Remove one file to avoid false positive __autoload() detection by php -l later on
- rm htdocs/wordpress/wp-includes/spl-autoload-compat.php

# Syntax check all php files and fail for any error text in STDERR
- '! find . -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
# @TODO: Run a more extensive test using the above real WordPress installation