Skip to content

Commit

Permalink
Adding travis
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Oct 5, 2020
1 parent 8683cd5 commit 0749883
Show file tree
Hide file tree
Showing 3 changed files with 606 additions and 566 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
dist: bionic

sudo: false

language: php

services:
- mysql

notifications:
email: false

cache:
directories:
- $HOME/.composer/cache

branches:
only:
- main

matrix:
include:
- php: 7.3

before_install:
- |
export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
phpenv config-rm xdebug.ini
else
echo "xdebug.ini does not exist"
fi
install:
- composer install -n

script:
- composer run phpcs
- composer run phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"require": {
"php": "^7.3",
"symfony/console": "^5.1",
"symfony/process": "^5.1",
"wp-cli/core-command": "^2.0",
"wp-cli/wp-cli": "^2.4"
"symfony/process": "^5.1"
},
"require-dev": {
"alley/alley-coding-standards": "dev-master",
"phpunit/phpunit": "^7"
"phpunit/phpunit": "^7",
"wp-cli/core-command": "^2.0",
"wp-cli/wp-cli": "^2.4"
},
"config": {
"sort-packages": true
Expand Down
Loading

0 comments on commit 0749883

Please sign in to comment.