Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Update theme-check CircleCI job (#69)
Browse files Browse the repository at this point in the history
* Update theme-check CircleCI job

* Update dependencies

* Update dependencies

* Add implementation option
  • Loading branch information
EvanHerman authored Mar 15, 2022
1 parent 644d733 commit 518aef6
Show file tree
Hide file tree
Showing 9 changed files with 11,614 additions and 3,239 deletions.
34 changes: 17 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ workflows:
jobs:
# Support PHP Versions
# http://php.net/supported-versions.php
- php56-phpcs: # EOL December 31, 2018, latest PHP version supported by Mins
- php56-phpcs: # EOL December 31, 2018, latest PHP version supported by Activation
filters:
tags:
only: /^(?!canary).*$/
Expand Down Expand Up @@ -94,38 +94,38 @@ jobs:
- run:
name: Install MariaDB
command: |
sudo apt-get update
sudo apt-get update --allow-releaseinfo-change
sudo apt-get install mariadb-client
- run:
name: Install rsync
command: sudo apt install rsync
- run:
name: Install Grunt.js
command: sudo npm install -g grunt-cli
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install node packages
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Install WPCLI
command: |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
- run:
name: Build the Mins Theme
name: Build the Activation Theme
command: |
mkdir -p activation
mkdir -p /tmp/artifacts
rsync -av --exclude-from ~/project/.distignore --delete ~/project/. ./activation
- run:
name: Setup WordPress site and install the Theme Check package
command: bash .dev/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest
- run:
name: Remove unsplash.com from the list of unaccetable sources in theme check
command: sed -i '34d' /tmp/wordpress/wp-content/plugins/theme-check/checks/class-non-gpl-check.php
- run:
name: Remove wp_body check from theme check.
command: sed -i '34d' /tmp/wordpress/wp-content/plugins/theme-check/checks/class-basic-check.php
- run:
name: Remove the text-domain check file from theme check.
command: rm -rf /tmp/wordpress/wp-content/plugins/theme-check/checks/class-textdomain-check.php
- run:
name: Remove the copyright check file from theme check.
command: rm -rf /tmp/wordpress/wp-content/plugins/theme-check/checks/class-copyright-notice-check.php
- run:
name: Run theme check
command: wp themecheck --theme=activation --no-interactive --path=/tmp/wordpress
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
name: Install rsync
command: sudo apt install rsync
- run:
name: Build the Mins Theme
name: Build the Activation Theme
command: |
mkdir -p activation
mkdir -p /tmp/artifacts
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
name: Install node packages
command: npm install
- run:
name: Build the Mins Theme
name: Build the Activation Theme
command: |
npm run build
mkdir -p activation
Expand Down
2 changes: 2 additions & 0 deletions .dev/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Author URI: https://www.godaddy.com/
* Description: Activation is a Primer child theme with a colorful, fitness-focused design.
* Version: 1.2.2
* Tested up to: 5.9
* Requires PHP: 5.6.0
* License: GPL-2.0
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: activation
Expand Down
28 changes: 10 additions & 18 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,15 @@ module.exports = function( grunt ) {

pkg: pkg,

autoprefixer: {
postcss: {
options: {
browsers: [
'Android >= 2.1',
'Chrome >= 21',
'Edge >= 12',
'Explorer >= 7',
'Firefox >= 17',
'Opera >= 12.1',
'Safari >= 6.0'
],
cascade: false
},
editor: {
src: [ 'editor-style.css' ]
map: false, // inline sourcemaps
processors: [
require( 'autoprefixer' ), // add vendor prefixes
]
},
main: {
src: [ 'style.css' ]
dist: {
src: [ 'editor-style.css', 'style.css' ],
}
},

Expand Down Expand Up @@ -155,6 +146,7 @@ module.exports = function( grunt ) {

sass: {
options: {
implementation: require( 'node-sass' ),
precision: 5,
sourceMap: false
},
Expand All @@ -177,7 +169,7 @@ module.exports = function( grunt ) {
},
sass: {
files: '.dev/sass/**/*.scss',
tasks: [ 'sass', 'replace:charset', 'autoprefixer', 'cssjanus' ]
tasks: [ 'sass', 'replace:charset', 'postcss', 'cssjanus' ]
}
},

Expand Down Expand Up @@ -215,7 +207,7 @@ module.exports = function( grunt ) {

require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks );

grunt.registerTask( 'default', [ 'sass', 'replace:charset', 'autoprefixer', 'cssjanus', 'jshint', 'imagemin' ] );
grunt.registerTask( 'default', [ 'sass', 'replace:charset', 'postcss', 'cssjanus', 'jshint', 'imagemin' ] );
grunt.registerTask( 'build', [ 'default', 'clean', 'copy' ] );
grunt.registerTask( 'readme', [ 'wp_readme_to_markdown' ] );
grunt.registerTask( 'version', [ 'replace', 'readme', 'build' ] );
Expand Down
17 changes: 2 additions & 15 deletions editor-style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ a:hover {
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted; }
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted; }

b,
strong {
Expand Down Expand Up @@ -102,8 +103,6 @@ figure {
margin: 1em 40px; }

hr {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
overflow: visible; }
Expand Down Expand Up @@ -151,8 +150,6 @@ fieldset {
padding: 0.35em 0.625em 0.75em; }

legend {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color: inherit;
display: table;
Expand All @@ -165,8 +162,6 @@ textarea {

[type="checkbox"],
[type="radio"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0; }

Expand Down Expand Up @@ -272,7 +267,6 @@ pre {
overflow: auto;
padding: 1em;
border: 1px solid rgba(37, 37, 37, 0.1);
-webkit-border-radius: 2px;
border-radius: 2px; }

code, kbd, tt, var {
Expand All @@ -284,7 +278,6 @@ code {
padding: 0.125rem 0.25rem;
background-color: #eee;
border: 1px solid rgba(37, 37, 37, 0.1);
-webkit-border-radius: 2px;
border-radius: 2px; }

pre code {
Expand All @@ -304,16 +297,12 @@ big {
font-size: 125%; }

html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }

*,
*:before,
*:after {
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit; }

body {
Expand Down Expand Up @@ -406,7 +395,6 @@ textarea,
.select2-container .select2-choice {
color: rgba(37, 37, 37, 0.5);
border: 1px solid rgba(37, 37, 37, 0.1);
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 0.75rem;
resize: none; }
Expand Down Expand Up @@ -476,7 +464,6 @@ input[type="submit"] {
color: #fff;
line-height: 1;
white-space: nowrap;
-webkit-border-radius: 2px;
border-radius: 2px;
font-size: .9375rem;
font-weight: 500;
Expand Down
17 changes: 2 additions & 15 deletions editor-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ a:hover {
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted; }
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted; }

b,
strong {
Expand Down Expand Up @@ -102,8 +103,6 @@ figure {
margin: 1em 40px; }

hr {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
overflow: visible; }
Expand Down Expand Up @@ -151,8 +150,6 @@ fieldset {
padding: 0.35em 0.625em 0.75em; }

legend {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color: inherit;
display: table;
Expand All @@ -165,8 +162,6 @@ textarea {

[type="checkbox"],
[type="radio"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0; }

Expand Down Expand Up @@ -272,7 +267,6 @@ pre {
overflow: auto;
padding: 1em;
border: 1px solid rgba(37, 37, 37, 0.1);
-webkit-border-radius: 2px;
border-radius: 2px; }

code, kbd, tt, var {
Expand All @@ -284,7 +278,6 @@ code {
padding: 0.125rem 0.25rem;
background-color: #eee;
border: 1px solid rgba(37, 37, 37, 0.1);
-webkit-border-radius: 2px;
border-radius: 2px; }

pre code {
Expand All @@ -304,16 +297,12 @@ big {
font-size: 125%; }

html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }

*,
*:before,
*:after {
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit; }

body {
Expand Down Expand Up @@ -406,7 +395,6 @@ textarea,
.select2-container .select2-choice {
color: rgba(37, 37, 37, 0.5);
border: 1px solid rgba(37, 37, 37, 0.1);
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 0.75rem;
resize: none; }
Expand Down Expand Up @@ -476,7 +464,6 @@ input[type="submit"] {
color: #fff;
line-height: 1;
white-space: nowrap;
-webkit-border-radius: 2px;
border-radius: 2px;
font-size: .9375rem;
font-weight: 500;
Expand Down
Loading

0 comments on commit 518aef6

Please sign in to comment.