summaryrefslogtreecommitdiff
path: root/.travis.yml
Commit message (Collapse)AuthorAge
* travis: Resolve warnings, info messages from TravisStephen Finucane2020-04-18
| | | | | | | | | | | | | The following were reported by Travis' build config validation: - root: deprecated key 'sudo' (The key `sudo` has no effect anymore.) - env: key 'matrix' is an alias for 'jobs', using 'jobs' - root: key 'matrix' is an alias for 'jobs', using 'jobs' - root: missing 'os', using the default 'linux' Resolve all of the above. Signed-off-by: Stephen Finucane <stephen@that.guru>
* tox: Drop support for Django < 2.2, Python < 3.6Stephen Finucane2020-04-08
| | | | | | | | | Each of these versions of Django is now EOL, and Python 3.5 will be EOL by time we release the next version. Drop it. The Python 2.7 cleanup will be done separately. Signed-off-by: Stephen Finucane <stephen@that.guru>
* travis, tox: only do coverage testing in py27Daniel Axtens2019-10-29
| | | | | | | | | | | | | | | | | Currently Travis calls `tox -e coverage` unconditionally. However, the environment has py27 basepython, so all the runs only generate py27 coverage! Rather than try to untangle that, just run the coverage when run in a py27 travis environment. This makes things faster for no loss of coverage. It means that codecov has nothing to submit for the py3x environments, but that's no real loss: it would otherwise submit lots of duplicate data. We could try to improve coverage by running coverage for 27 and 3x, but given that 27 is going away, don't stress at this point. Signed-off-by: Daniel Axtens <dja@axtens.net>
* travis: fix codecovDaniel Axtens2019-10-29
| | | | | | | | | | | | | | | | | | | | | | | | In e017f69376da ("travis: run pep8/flake8 tests"), codecov was removed from the install step, on the basis that tox-travis would pull it in automatically. This, it turns out, isn't entirely true: it is pulled in to the tox environment, but the data is actually sent in an after_success step. That is outside the tox environment, as it should be - if it were part of the tox environment, running `tox -e coverage` on a developer laptop would try to send data to the web. But, as codecov now isn't present outside the tox environment, we see in the logs: $ codecov codecov: command not found We don't get any reporting of success/failure in the after_success step, so we didn't notice. Restore the installation in the travis environment. Fixes: e017f69376da ("travis: run pep8/flake8 tests") Signed-off-by: Daniel Axtens <dja@axtens.net>
* travis: Test Python 3.8Daniel Axtens2019-10-29
| | | | | | | An embarassing miss when applying the previous patch. Fixes: 681609f9511c ("Python 3.8 support") Signed-off-by: Daniel Axtens <dja@axtens.net>
* travis: Update postgreSQL 10 stepsStephen Finucane2019-09-08
| | | | | | | | | | | | | | | | | | This is failing since the update to Xenial [1] with the following warning: $ sudo -u postgres psql -c "grant ALL on DATABASE postgres to travis WITH GRANT OPTION;" could not change directory to "/home/travis/build/getpatchwork/patchwork": Permission denied psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5433"? Use the solution from [2] to resolve it. [1] https://travis-ci.org/getpatchwork/patchwork/jobs/582342649 [2] https://github.com/travis-ci/travis-ci/issues/8537#issuecomment-498299645 Signed-off-by: Stephen Finucane <stephen@that.guru>
* travis: Resolve issues with Python 3.7Stephen Finucane2019-09-08
| | | | | | | | | | | | | | Bump the distro version to xenial, as this is the first version to include Python 3.7 support. Bionic is also available but it doesn't support Python 3.5 [1]. In addition, skip a test that was valid on Python 3.4 - 3.6 but does not appear to be an issue for Python 3.7. [1] https://docs.travis-ci.com/user/reference/bionic/#python-support Signed-off-by: Stephen Finucane <stephen@that.guru> Fixes: 6267a5fa ("Drop support for Python 3.4, add Python 3.7")
* Drop support for Python 3.4, add Python 3.7Stephen Finucane2019-09-08
| | | | | | | It's no longer supported upstream and the *second* last Ubuntu LTS release provides something newer. Time to move on. Signed-off-by: Stephen Finucane <stephen@that.guru>
* travis: Use consistent quote styleStephen Finucane2018-10-30
| | | | | | It's the little things in life. Signed-off-by: Stephen Finucane <stephen@that.guru>
* travis: Stop testing PostgreSQL 11Stephen Finucane2018-10-30
| | | | | | | | | | | | Travis seems to be doing something really weird with PG11 since it was released a few weeks ago. This is currently breaking our CI and can't continue. It doesn't seem possible to mark this as an expected failure so simply remove it. We can re-add this once Travis gains proper support for this version via their addons. Signed-off-by: Stephen Finucane <stephen@that.guru> Suggested-by: Daniel Black <daniel@linux.ibm.com> Acked-by: Daniel Axtens <dja@axtens.net>
* travis: add mariadb-10.3 as testDaniel Black2018-08-22
| | | | | Signed-off-by: Daniel Black <daniel@linux.ibm.com> Signed-off-by: Daniel Axtens <dja@axtens.net>
* travis: test against postgresql 10 and 11Daniel Black2018-08-22
| | | | | | | | | | | | | | | | | | | postgresql 10 is the most recent major version, and it would be good to keep an eye on postgres 11 compatibility also, so test against both of those. Specify PGPORT as a way to differentiate the new installations from the postgres 9.6 server running on the default port (5432). Use a local unix socket to work around the fact that by default postgres only allows passwordless auth on local sockets - which is tweaked for postgres 9.6 but not for later versions that aren't in the usual Travis image. Also print the current db version and user for validation. Signed-off-by: Daniel Black <daniel@linux.ibm.com> [cleanup, squash, commit message] Signed-off-by: Daniel Axtens <dja@axtens.net>
* tests: Remove Selenium testsStephen Finucane2018-04-26
| | | | | | | | | | | | | | | | These were added quite some time ago in order to allow some level of UI testing. However, I've personally never used them, they're not used by the CI, and no one has shown any desire in extending them in their time here. It is time to bid these tests adieu. Removing these allows us to remove a whole load of wiring that existed just to enable these. Some of this, like the '--quick-tox' option for the Dockerfile, is retained so we don't need to use different commands for various versions of Patchwork, but the majority is just stripped out. Signed-off-by: Stephen Finucane <stephen@that.guru> Cc: Daniel Axtens <dja@axtens.net>
* travis: Run pep8 for py27 onlyStephen Finucane2018-02-03
| | | | | | | | Keep run times to a minimum. Signed-off-by: Stephen Finucane <stephen@that.guru> Acked-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Daniel Axtens <dja@axtens.net>
* travis: test Python 3.6Daniel Axtens2018-01-26
| | | | | | | | We have a tox entry for py36-django111. We should test that in Travis CI. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Stephen Finucane <stephen@that.guru>
* travis: run pep8/flake8 testsDaniel Axtens2018-01-26
| | | | | | | | | | | Add the test at the end of each run. This is inefficient but simpler than adding a matrix entry. It's also very fast so there's no slowdown. While there, remove the 'codecov' package: tox will bring it in automatically. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Stephen Finucane <stephen@that.guru>
* Test postgresql support in Travis CIDaniel Axtens2017-10-28
| | | | | | | | | | | Use the most recent version of postgres (9.6) because we need a more recent version than the default to show up the broken bundle behaviour. This should prevent us from causing any further regressions. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Stephen Finucane <stephen@that.guru>
* travis: switch to using root userDaniel Axtens2017-09-06
| | | | | | | When I pushed the last change, I noticed that Travis was beginning to fail due to db permission errors. This is a trivial fixup. Signed-off-by: Daniel Axtens <dja@axtens.net>
* travis: Disable sudoStephen Finucane2016-11-01
| | | | | | | We don't need it, and disabling it can make builds faster. Disable it. Signed-off-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Daniel Axtens <dja@axtens.net>
* travis: Integrate with codecovStephen Finucane2016-11-01
| | | | | | | | This mostly involves enabling coverage as a default tox target. We add pep8 too, while we're at it. Signed-off-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Daniel Axtens <dja@axtens.net>
* travis: Use tox-travisStephen Finucane2016-11-01
| | | | | | | This simplifies our .travis.yml file Signed-off-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Daniel Axtens <dja@axtens.net>
* travis: Enable *-django110 targetsStephen Finucane2016-10-10
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Daniel Axtens <dja@axtens.net>
* Add .travis.yml fileDaniel Axtens2016-09-07
This automatically runs the tests (except the browser ones) via tox. Tested on my github account. This will require some setup on the GitHub end: Travis will need to be turned on for the project, and ideally a badge added to the readme so we can see the build status. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>