From 07427df9afcc28dd9eb4afd2429ef3f0910c0711 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 7 Mar 2022 03:00:56 +0100 Subject: [PATCH] remove travis, jshint and jscs config file --- .gitattributes | 2 -- .github/README.md | 1 - .gitignore | 3 -- .jscsrc | 13 -------- .jshintignore | 7 ----- .travis.yml | 67 ----------------------------------------- src/build/dist-build.js | 3 -- 7 files changed, 96 deletions(-) delete mode 100644 .jscsrc delete mode 100644 .jshintignore delete mode 100644 .travis.yml diff --git a/.gitattributes b/.gitattributes index f6c3314e..6dcd777c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,8 +7,6 @@ .editorconfig text .gitattributes text .gitignore text -.jscsrc text -.jshintignore text *.css text *.js text *.json text diff --git a/.github/README.md b/.github/README.md index cf66f457..8a2faef1 100644 --- a/.github/README.md +++ b/.github/README.md @@ -1,7 +1,6 @@

-[![Build Status](https://api.travis-ci.org/understrap/understrap.svg?branch=master)](https://travis-ci.org/understrap/understrap) [![Wordpress Theme Version](https://img.shields.io/wordpress/theme/v/understrap.svg)](https://wordpress.org/themes/understrap) [![Wordpress Theme Active Installs](https://img.shields.io/wordpress/theme/installs/understrap.svg)](https://wordpress.org/themes/understrap/) [![Github Last Commit](https://img.shields.io/github/last-commit/understrap/understrap)](https://github.com/understrap/understrap/commits/master) diff --git a/.gitignore b/.gitignore index 26e997dc..4e952b54 100644 --- a/.gitignore +++ b/.gitignore @@ -26,9 +26,6 @@ !.gitattributes !.github !.gitignore -!.jscsrc -!.jshintignore -!.travis.yml # Ignore all files with .lock extentions *.lock diff --git a/.jscsrc b/.jscsrc deleted file mode 100644 index fd195268..00000000 --- a/.jscsrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "preset": "wordpress", - "fileExtensions": [ ".js" ], - "excludeFiles": [ - "js/**.min.js", - "src/**/*.js", - "js/popper.js", - "js/theme.js", - "gulpfile.js", - "vendor/**", - "node_modules/**" - ] -} \ No newline at end of file diff --git a/.jshintignore b/.jshintignore deleted file mode 100644 index 00651b1a..00000000 --- a/.jshintignore +++ /dev/null @@ -1,7 +0,0 @@ -js/**.min.js -src/**/*.js -js/popper.js -js/theme.js -gulpfile.js -node_modules -vendor \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 954786bd..00000000 --- a/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Travis CI configuration file. -# @link https://travis-ci.org/ - -# For use with the UnderStrap WordPress theme -# @link https://github.com/understrap/understrap - - -# Declare virtual environment and operating system. -# @link https://docs.travis-ci.com/user/reference/overview/#virtualization-environments -os: linux -dist: xenial - -# Declare project language and PHP versions to test against. -# @link https://docs.travis-ci.com/user/languages/php/ -language: php -php: - - '5.6' - - '7.0' - - '7.1' - - '7.2' - - '7.3' - - '7.4' - - nightly - -matrix: - fast_finish: true - include: - - php: 7.4 - env: PHPCS=1 - allow_failures: - - php: nightly - -# Use this to prepare the build for testing. -before_script: - # Speed up build time by disabling Xdebug. - - phpenv config-rm xdebug.ini || echo 'No xdebug config.' - # Install composer dependencies - - if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then - composer install; - else - composer install --ignore-platform-reqs; - fi - # Install JSCS: JavaScript Code Style checker - # @link http://jscs.info/ - - if [[ "$PHPCS" == 1 ]]; then npm install -g jscs; fi - # Install JSHint, a JavaScript Code Quality Tool - # @link https://jshint.com/docs/ - - if [[ "$PHPCS" == 1 ]]; then npm install -g jshint; fi - - if [[ "$PHPCS" == 1 ]]; then wget https://develop.svn.wordpress.org/trunk/.jshintrc; fi - -# Run test script commands. -# Default is specific to project language. -# All commands must exit with code 0 on success. Anything else is considered failure. -script: - # Validate the composer.json file. - # @link https://getcomposer.org/doc/03-cli.md#validate - - if [[ "$PHPCS" == 1 ]]; then composer validate --no-check-all --strict; fi - - # Lint the PHP files against parse errors. - - composer lint:php - - # Check the code against the standards as documented in the phpcs.xml file. - - if [[ "$PHPCS" == 1 ]]; then composer check:cs; fi - # Run the theme through JSHint - - if [[ "$PHPCS" == 1 ]]; then jshint .; fi - # Run the theme through JavaScript Code Style checker - - if [[ "$PHPCS" == 1 ]]; then jscs .; fi \ No newline at end of file diff --git a/src/build/dist-build.js b/src/build/dist-build.js index 3488b6ce..9cd22827 100644 --- a/src/build/dist-build.js +++ b/src/build/dist-build.js @@ -15,9 +15,6 @@ async function copyDir( src, dest ) { '.editorconfig', '.gitattributes', '.gitignore', - '.jscsrc', - '.jshintignore', - '.travis.yml', 'composer.json', 'composer.lock', 'package.json',