Commit Graph

63 Commits (68836e7e237d82a377b2b2262cf85f031cb0bba1)

Author SHA1 Message Date
Eric Holscher c8adfb4f4c Fix env 2019-01-22 14:00:18 -05:00
Eric Holscher 46c4f2084d Merge remote-tracking branch 'origin/master' into search-reapply 2019-01-22 13:59:47 -05:00
Manuel Kaufmann f68d84a2ef Move ES env vars to py36 job 2019-01-21 20:38:58 +01:00
Manuel Kaufmann 6092d0efae Remove py36 from travis.matrix.include 2019-01-21 20:35:12 +01:00
Manuel Kaufmann 271884a664 Run tests with python3.6 on Travis 2019-01-03 17:30:05 +01:00
Manuel Kaufmann 678027c5f6 Do not run py27 on Travis 2019-01-03 16:43:31 +01:00
Eric Holscher 6a451ec7c7 Reapply search upgrade to master.
This is a squashed commit of all previous changes.
2018-12-20 09:27:22 -05:00
Santos Gallegos 3ce197d202 Remove deprecated sudo from travis
It will be removed soon
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2018-11-20 11:48:59 -05:00
Eric Holscher 70fee481d3
Merge pull request #4811 from stsewd/delete-untracked-tags-on-fetch
Delete untracked tags on fetch
2018-11-01 09:43:29 -05:00
Eric Holscher 818566bd6c Add travis check for migrations 2018-10-31 11:11:15 -05:00
Santos Gallegos 7b7c83b973 Test with jsut apt-get 2018-10-29 20:45:34 -05:00
Santos Gallegos 64b8e09349 Install git 2.17.1 on travis 2018-10-29 20:23:35 -05:00
Eric Holscher 68e9f44c28 Run travis on release branches 2018-10-16 10:24:38 +02:00
Eric Holscher 183b176920 Revert "Merge pull request #4636 from rtfd/search_upgrade" (#4716)
This reverts commit 182ab8d491, reversing
changes made to 6261427e66.
2018-10-03 11:51:34 -06:00
Safwan Rahman 295f91aca2 fixup as per review 2018-09-21 02:39:10 +06:00
Eric Holscher 6b27161701 Merge remote-tracking branch 'origin/master' into search_upgrade 2018-09-15 07:26:44 +06:00
Manuel Kaufmann d3fff4d6c1 Run all our tests with Python 3.6 on Travis 2018-08-30 20:59:39 +02:00
Santos Gallegos 70d0867c56 Cache ~/.npm to speed up CI 2018-08-10 11:08:44 -05:00
Eric Holscher d4f670819b Merge pull request #4211 from safwanrahman/search
Upgrade Elasticsearch to version 6.x
2018-07-16 09:18:45 +06:00
David Fischer b0810e023b Use "npm run lint" from tox (#4312)
* Use "npm run lint" from tox

* Don't need gulp anymore for CI
2018-07-05 09:52:33 -06:00
Safwan Rahman b8f1a063ce fixing travis 2018-06-09 08:38:16 +06:00
Safwan Rahman 272b50a2d2 implementing project search, test and travis fix 2018-06-09 08:25:54 +06:00
Eric Holscher b10c493731
Merge pull request #4116 from safwanrahman/search_test
Test for search functionality
2018-06-05 11:30:17 -04:00
Santos Gallegos 2ee1311e6c Lint docs with python 3.6 2018-05-22 23:30:46 -05:00
Santos Gallegos c1e79507d3 Include new env to travis 2018-05-22 23:30:46 -05:00
Safwan Rahman c6f39e7680 fixing travis 2018-05-22 04:57:52 +06:00
Safwan Rahman 47ff8d942a run search test only if --including-search passed 2018-05-22 03:08:50 +06:00
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