Skip to content

Commit

Permalink
.travis.yml: Add lint job
Browse files Browse the repository at this point in the history
Closes #48
  • Loading branch information
jayvdb committed Jun 13, 2018
1 parent d103d5e commit 6859819
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[all]
ignore = node_modules/**, dist/**, .git/**

[all.SpaceConsistencyBear]
files = **.js, **.json, **.yml, **.yaml, **.md
bears = SpaceConsistencyBear
use_spaces = true
ignore += src/gantt-chart.js

[all.json]
bears = JSONFormatBear
files = **.json
indent_size = 2

[all.js]
bears = ESLintBear
eslint_config = .eslintrc.json
files = **.js
ignore += src/gantt-chart.js

[all.markdown]
bears = MarkdownBear
files = **.md

[all.yaml]
bears = YAMLLintBear
files = **.yml, **.yaml
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,27 @@ jobs:
install: pip install moban
script: .ci/check_moban.sh

- <<: *disable_global
stage: lint
language: python
python: 3.6
cache:
pip: true
directories:
- node_modules
before_install:
- export PATH=$PATH:./node_modules/.bin
- export NODE_PATH=$NODE_PATH:./node_modules
install:
- pip install coala-bears
- npm install
script: coala --non-interactive -V

# Needed for Firefox
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
- sleep 3 # give xvfb some time to start

script:
- npm run test
Expand All @@ -51,5 +67,5 @@ deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
"on":
branch: master

0 comments on commit 6859819

Please sign in to comment.