2013-04-08 17:05:09 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2017-06-14 16:38:03 +00:00
|
|
|
- 2.7
|
|
|
|
- 3.6
|
2015-07-20 15:06:46 +00:00
|
|
|
sudo: false
|
2018-05-20 03:05:51 +00:00
|
|
|
env:
|
|
|
|
- ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
|
2017-06-14 16:38:03 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-08-30 18:59:39 +00:00
|
|
|
- python: 3.6
|
2017-06-14 16:38:03 +00:00
|
|
|
env: TOXENV=docs
|
2018-02-21 20:46:46 +00:00
|
|
|
- python: 3.6
|
2018-02-21 18:22:18 +00:00
|
|
|
env: TOXENV=docs-lint
|
2018-08-30 18:59:39 +00:00
|
|
|
- python: 3.6
|
2017-06-14 16:38:03 +00:00
|
|
|
env: TOXENV=lint
|
2018-05-21 22:16:48 +00:00
|
|
|
script: tox
|
2018-08-30 18:59:39 +00:00
|
|
|
- python: 3.6
|
2017-06-14 16:38:03 +00:00
|
|
|
env: TOXENV=eslint
|
2016-07-18 18:31:37 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ~/.cache/pip
|
Add eslint using the airbnb config. (#2905)
* Add eslint using the airbnb config.
In an effort to make the JS consistent, this adds an ESLint gulp task. ESLint
is *very* configurable, and has no defaults. Instead, this reaches for
airbnb's legacy config (which covers ES5), which is one of the most popular
configurations. As a last step, it turns off all of the rules which currently
fail. We can turn them on piecemeal, or override the airbnb style to use a
different format.
Rules to prioritize (as they likely indicate bugs):
* "array-callback-return": "off",
* "eqeqeq": "off",
* "guard-for-in": "off",
* "no-inner-declarations": "off",
* "no-loop-func": "off",
* "no-mixed-operators": "off",
* "no-undef": "off",
* "no-use-before-define": "off",
* "one-var": "off",
* Lint frontend in Travis.
This adds an ESLint step to the CI service so we prevent unlinted code from
making its way in.
* Create an ESLint tox env.
By adding a tox env for eslint, we allow users to run it locally as part of
tox runs.
Thanks for the suggestion @ericholscher!
* Fix tox call to gulp lint task
2017-05-24 23:12:33 +00:00
|
|
|
- ~/.nvm/nvm.sh
|
2018-08-06 23:21:31 +00:00
|
|
|
- ~/.npm
|
2013-04-08 17:05:09 +00:00
|
|
|
install:
|
2018-05-20 05:15:46 +00:00
|
|
|
- ./scripts/travis/install_elasticsearch.sh
|
2017-06-14 16:38:03 +00:00
|
|
|
- pip install tox-travis
|
|
|
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
|
|
|
|
- source ~/.nvm/nvm.sh
|
|
|
|
- nvm install --lts
|
|
|
|
- nvm use --lts
|
2018-07-05 15:52:33 +00:00
|
|
|
- npm install -g bower
|
2017-06-14 16:38:03 +00:00
|
|
|
- npm install
|
|
|
|
- bower install
|
2013-04-08 17:05:09 +00:00
|
|
|
script:
|
2018-05-21 22:16:48 +00:00
|
|
|
- ./scripts/travis/run_tests.sh
|
2015-01-12 23:42:36 +00:00
|
|
|
notifications:
|
2015-01-16 16:49:56 +00:00
|
|
|
slack:
|
|
|
|
rooms:
|
2015-09-15 18:10:14 +00:00
|
|
|
- readthedocs:y3hjODOi7EIz1JAbD1Zb41sz#random
|
2015-01-16 16:55:51 +00:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2017-12-18 22:43:34 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|