Commit Graph

36 Commits (d705f6c0bde0a10f95e1439d81ff3d1bc07cafb1)

Author SHA1 Message Date
Safwan Rahman d705f6c0bd fixup 2018-05-20 11:49:38 +06:00
Safwan Rahman 8e74ff73d5 fixup 2018-05-20 09:20:28 +06:00
Safwan Rahman 91de9064de install plugin 2018-05-20 09:20:15 +06:00
Safwan Rahman 238f13667f adding elasticsearch to travis 2018-05-20 09:05:51 +06:00
Eric Holscher fb2b84c564 Only build travis push builds on master.
This should fix the double-building of travis.

via https://stackoverflow.com/questions/31882306/how-to-configure-travis-ci-to-build-pull-requests-merges-to-master-w-o-redunda
2017-12-18 14:43:34 -08:00
Jesse Tan 9cd37ee737 Install Gulp globally for Travis CI 2017-08-01 16:15:28 +02:00
Jesse Tan 092318afa8 Install Bower globally for Travis CI 2017-08-01 16:00:44 +02:00
Anthony accc01535c Finish linting on py3ish code (#2949)
* Resolve first round of linting errors in restapi.

This is a first step and only adds docstrings, etc. It doesn't refactor any
code.

Conflicts:
	prospector-more.yml
	readthedocs/restapi/views/model_views.py

* Reduce unused params.

In several cases, we can use the provided `request` rather than access `self`
(which could make these functions easier to test in isolation). In others, the
unused args could be folded into an unnamed kwarg param.

* Don't replace section variable.

This worked as intended, but only because the overridden section variable
would later evaluate to True. Using a different variable name makes this a bit
less error-prone.

* Minor docstring update

* Fix indent on docstring

* Punt on refactoring

* Fix call args

* Try unpinning testing reqs

* Bump up prospector higher level strictness

* Linting issues: arguments-differ, len-as-condition, redefined variables

* Remove unnecessary elses

This addresses no-else-return, which removes a `return` in an `else` after an
`if` that already has a `return`. This makes the default return more obvious in
most cases.

* Fix new linting issues with import order

Also, update travis and tox config for multiple versions of python

* Another fix on travis envs
2017-06-14 09:38:03 -07:00
Hank Gay 1d055ef724 Try to simplify the tox/travis interactions. 2017-06-05 10:52:14 -04:00
Hank Gay e46be8510b More Travis-CI tweakery. 2017-06-01 15:07:51 -04:00
Hank Gay 76e1117977 Make Python 2.7 and Python 3.6 separate Travis builds. 2017-06-01 14:55:10 -04:00
Hank Gay f351f85d99 Tell Travis we want python 3.6 too 2017-06-01 14:51:41 -04:00
Hank Gay 04c2566bca Enable Python 3.6 in Travis. 2017-06-01 14:38:50 -04:00
CM Lubinski 9e07061730 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 16:12:33 -07:00
Berker Peksag 556a672781 Speed up build process (#2312)
* We don't need all dependecies to run 'tox -e lint'
* We don't really use pytest-django but it wouldn't hurt
  setting --reuse-db
* coveralls doesn't seem to be working at the moment so
  I removed it
* Delete unused runtests.sh. 'tox -e py27' already does
  the same job.
* Cache all dependencies in Travis CI
2016-07-18 11:31:37 -07:00
Eric Holscher 8ca4056da4 Post to random channel to reduce noise 2015-09-15 11:10:14 -07:00
Eric Holscher 78aebde3bb Enable linting in Travis 2015-07-31 12:34:27 -07:00
Anthony Johnson 15e38272e8 Drop lint from Travis to start 2015-07-21 19:41:38 -07:00
Anthony Johnson 18f68dee96 Add test of tox running test and lint commands, update travis 2015-07-21 19:41:37 -07:00
Gregor Müllegger c5068b675b Use new travis infrastructure
Setting `sudo: false` will use the new docker based infrastructure of
TravisCI. See these docs for more information:
http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade
2015-07-20 17:06:48 +02:00
Gregor Müllegger 3c477aad8e Removing pip switches --allow-external and --allow-unverified as they are no longer needed. 2015-06-25 12:17:55 +02:00
Eric Holscher c5d39b83a1 Fix travis yml 2015-04-15 12:52:59 -07:00
syndbg 103deefe43 Added top-level requirements file 2015-04-15 11:37:12 -07:00
syndbg 7e8897457d Organized requirements. 2015-04-15 11:36:58 -07:00
Eric Holscher 65799df699 Merge remote-tracking branch 'origin/gold' into tools 2015-02-04 16:40:29 -08:00
Anthony Johnson 30b36b7892 Goofed on travis config 2015-01-16 08:55:51 -08:00
Anthony Johnson 39d4eeea5d Quiet travis notifications 2015-01-16 08:49:56 -08:00
Anthony Johnson d4c9b786af Add travis notify to slack 2015-01-12 15:42:36 -08:00
Eric Holscher b4771ca285 Fix deploy reqs 2015-01-04 14:20:37 -08:00
David Baumgold 1c7f442ae2 Integrate coveralls.io 2014-08-08 11:23:14 -04:00
Eric Holscher 4ef3b95395 Fix travis config 2014-02-11 14:41:42 +08:00
Eric Holscher c3ff885433 Fix travis build 2014-02-11 10:58:04 +08:00
Eric Holscher 5ba20b2d47 Don't use mirrors 2013-11-06 09:28:33 -08:00
Eric Holscher 4b61df4a8f Comment out flake8 for now. 2013-08-22 15:04:40 -07:00
Wraithan (Chris McDonald) 3b86ca031e run tests on travis-ci 2013-04-11 17:05:13 -07:00
Wraithan (Chris McDonald) e119522da9 add travis-ci 2013-04-08 10:05:09 -07:00