forked from mirror/_s
Merge pull request #586 from yoarts/patch-1
Change plugin references to theme references in Travis CI config file.
This commit is contained in:
commit
ba41e2222a
14
.travis.yml
14
.travis.yml
|
@ -60,11 +60,11 @@ before_script:
|
||||||
- mkdir -p $WP_DEVELOP_DIR
|
- mkdir -p $WP_DEVELOP_DIR
|
||||||
# Use the Git mirror of WordPress.
|
# Use the Git mirror of WordPress.
|
||||||
- git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
|
- git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
|
||||||
# Set up plugin information.
|
# Set up theme information.
|
||||||
- plugin_slug=$(basename $(pwd))
|
- theme_slug=$(basename $(pwd))
|
||||||
- plugin_dir=$WP_DEVELOP_DIR/src/wp-content/plugins/$plugin_slug
|
- theme_dir=$WP_DEVELOP_DIR/src/wp-content/themes/$theme_slug
|
||||||
- cd ..
|
- cd ..
|
||||||
- mv $plugin_slug $plugin_dir
|
- mv $theme_slug $theme_dir
|
||||||
# Set up WordPress configuration.
|
# Set up WordPress configuration.
|
||||||
- cd $WP_DEVELOP_DIR
|
- cd $WP_DEVELOP_DIR
|
||||||
- echo $WP_DEVELOP_DIR
|
- echo $WP_DEVELOP_DIR
|
||||||
|
@ -83,8 +83,8 @@ before_script:
|
||||||
# Set install path for WordPress Coding Standards
|
# Set install path for WordPress Coding Standards
|
||||||
# @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
|
# @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
|
||||||
- scripts/phpcs --config-set installed_paths ../wordpress-coding-standards
|
- scripts/phpcs --config-set installed_paths ../wordpress-coding-standards
|
||||||
# Hop into plugins directory.
|
# Hop into themes directory.
|
||||||
- cd $plugin_dir
|
- cd $theme_dir
|
||||||
# After CodeSniffer install you should refresh your path.
|
# After CodeSniffer install you should refresh your path.
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
|
|
||||||
|
@ -108,4 +108,4 @@ script:
|
||||||
# Receive notifications for build results.
|
# Receive notifications for build results.
|
||||||
# @link http://docs.travis-ci.com/user/notifications/#Email-notifications
|
# @link http://docs.travis-ci.com/user/notifications/#Email-notifications
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
Reference in New Issue