Skip to content

[ticket/14970] Use stylelint.io in travis CI builds#4622

Merged
marc1706 merged 12 commits intophpbb:masterfrom
marc1706:ticket/14970
Mar 8, 2017
Merged

[ticket/14970] Use stylelint.io in travis CI builds#4622
marc1706 merged 12 commits intophpbb:masterfrom
marc1706:ticket/14970

Conversation

@marc1706
Copy link
Member

@marc1706 marc1706 commented Jan 8, 2017

Checklist:

  • Correct branch: master for new features; 3.2.x, 3.1.x for fixes
  • Tests pass
  • Code follows coding guidelines: master / 3.2.x, 3.1.x
  • Commit follows commit message format

Tracker ticket (set the ticket ID to your ticket ID):

https://tracker.phpbb.com/browse/PHPBB3-14970

@marc1706 marc1706 added this to the 3.3.0-a1 milestone Jan 8, 2017
@marc1706
Copy link
Member Author

marc1706 commented Jan 8, 2017

Seems to run now. Thoughts @hanakin ?

@hanakin
Copy link
Member

hanakin commented Jan 8, 2017

yeah there are going to be some changes that still need to happen to the stylelint config but should not effect this. It will provide a good test though to make sure its working

@marc1706
Copy link
Member Author

marc1706 commented Jan 8, 2017

Error / warning thrown by stylelint causes tests to fail as expected: https://travis-ci.org/phpbb/phpbb/jobs/190053358

# the docs/CREDITS.txt file.
#
set -e
set -x
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removes it please, or add set +x just before sourcing nvm because the output is 1000 times too verbose

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nicofuma better?

@marc1706
Copy link
Member Author

Builds still fail on incorrect input data: https://travis-ci.org/phpbb/phpbb/jobs/190623874

"homepage": "https://github.com/phpbb/phpbb#readme",
"devDependencies": {
"stylelint": "^7.7.1"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add new dependency for future versions "stylelint-order": "^0.3.0"

"author": "",
"license": "GPL-2.0",
"bugs": {
"url": "https://github.com/phpbb/phpbb/issues"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should technically point to the tracker since we do not use issues

"bugs": {
"url": "https://github.com/phpbb/phpbb/issues"
},
"homepage": "https://github.com/phpbb/phpbb#readme",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably point to .com

set +x

DB=$1
TRAVIS_PHP_VERSION=$2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any need for DB or TRAVIS_PHP_VERSION

@marc1706
Copy link
Member Author

Updated

@hanakin
Copy link
Member

hanakin commented Feb 23, 2017

👍

npm install > /dev/null
set -x
stylelint --config ../.stylelintrc "styles/prosilver/theme/*.css"
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably need to lint the admin css as well to ensure complete standards

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, will add the admin css as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the admin CSS but that line is commented now due to the large amount of issues that are noted. I think it's best to fix these issues in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree also since the I still need to update the linting rules file

@marc1706 marc1706 merged commit 0097a57 into phpbb:master Mar 8, 2017
@marc1706 marc1706 deleted the ticket/14970 branch March 8, 2017 20:48
javiexin referenced this pull request Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants