Commit Graph

29 Commits

Author SHA1 Message Date
Kyle Robbertze 6573e1d74c Set python versions in travis 2020-04-29 19:05:35 +02:00
Kyle Robbertze ea54493c21 add chaudum fixes 2020-04-29 19:05:35 +02:00
Kyle Robbertze cf2dda4532 test travis against py3 2020-04-29 19:05:35 +02:00
robbt 8e27c777d8 Even more explicit to avoid running python tests on any php version other than 7.3 2020-04-23 13:26:08 -04:00
robbt dc2b8261bc travis CI making exclude specific to all versions of php other than 7.3 2020-04-23 13:17:43 -04:00
robbt f5eea96fe3 seeing if adding a name includes a job 2020-04-23 13:00:00 -04:00
robbt 9a59f26473 changed order of include and exclude to see if additional job is ran 2020-04-23 12:50:39 -04:00
robbt a4da0866af minor syntax change to avoid breaking yml file and hopefully run python tests only once 2020-04-23 12:47:30 -04:00
robbt 15cdbdd65d trying to get python to only run on one job 2020-04-23 12:38:09 -04:00
robbt 936798354e Tried moving the exclude and include under the jobs as per docs example 2020-04-23 12:26:17 -04:00
robbt a6eafe64a0 Modifying php 7.0 to have python=true to attempt to run the python tests and mkdocs update during that test 2020-04-23 12:14:02 -04:00
robbt 35a5dff881 Trying to modify php 7.3 to run python script 2020-04-23 12:07:48 -04:00
robbt 174c7f6e30 Make travis CI use 1.0 explicitly 2020-04-23 08:43:13 -04:00
Lucas Bickel f75c533d0b 💥 (ubuntu) drop trusty from installer 2019-07-14 11:30:36 +02:00
Kyle Robbertze 08812e1001 Add dos2unix dependency to travis 2019-04-23 19:08:48 +02:00
Kyle Robbertze 83064f0bc7 add php 7.3 to matrix 2019-03-28 15:05:40 +02:00
Lucas Bickel fb402a78d2 📦 (ci) add PHP 7.2 to travis build matrix 2018-10-12 20:07:30 +02:00
Lucas Bickel bd15ba6e6f Add python-magic package in travis build 2017-09-17 11:29:26 +02:00
Lucas Bickel 4dc45a935f Fix release script call
The script was logging "Script failed with status 127". It seems that this is due to release.sh not being executable and not being referenced with a path starting with ./.
2017-05-16 12:44:01 +02:00
Lucas Bickel 74428511c2 Create release tarball using travis 2017-03-19 11:31:56 +01:00
Lucas Bickel 71febf1222 Fix deploy condition on travis
https://docs.travis-ci.com/user/deployment/#Conditional-Releases-with-on%3A

Travis can't do env: conditionals :(
2017-03-05 14:54:32 +01:00
Lucas Bickel 69a6eeb7bb Build docs from conditional python script 2017-03-04 16:40:23 +01:00
Lucas Bickel 188c127057 Merge branch 'master' into feature/analyzer-on-travis
# Conflicts:
#	.travis.yml
2017-03-04 16:35:11 +01:00
Lucas Bickel d875c9f5b9 Proper target repo setup for mkdocs deploy 2017-03-04 16:02:59 +01:00
Lucas Bickel 1fddc41868 Configure .travis.yml for mkdocs 2017-03-04 14:53:35 +01:00
Lucas Bickel 7a3d87a4b2 Run tests in small scripts
This is so we get a proper shell where running set -xe makes sense allowing travis to pick up nicely on how the tests run (ie. marking them as failed and not errored when the fail).
2017-03-04 10:55:12 +01:00
Lucas Bickel 9b3d0c90da mostly run analyzer tests on travis
* [x] regonfigured the build matrix with more php jobs and a separate python job (we can add more python jobs later)
* [x] run tests on travis' trusty beta container (it's closer to what we need anyway)
* [x] install packages needed for analyzer tests in build env
* [x] added docs on how to run nosetests locally
* [x] don't run initctl in analyzer setup so setup can also be used on travis (and add it to the install script directly)
* [x] ignore replaygain checks on travis (it has proven quite impossible to get the needed python-gi module to work in the provided virtualenv)

I tried a lot of solutions to get the replaygain checks to run. I needed to decide that this has gone far enough, maybe someone who is more of a pythonista than me can take a crack at it and get it solved. Even without running those tests on CI/CD there are still plenty others.

This PR only has parts of what are needed for getting python tests running on travis as per #15. I only took a quick shot at anything not analyzer and figured I would not be able to "fix" them without digging a bit deeper (ie. also getting rid of std_err_override).
2017-03-03 20:38:27 +01:00
Lucas Bickel 1ca47d67d5 Use local configuration in tests
This way the tests should really run out of the box with what is described in TESTING.md.
2017-02-28 12:16:03 +01:00
Lucas Bickel 625f92fe44 Vendorize ZF1, fix PHPUnit and configure travis
This a a rather large commit due to the nature of the stuff it is touching. To get PHPUnit up and running again I had to update some deps and I did so by vendorizing them. The vendorizing of zf1 makes sense since distros are already considering to drop it from their repos.

* [x] install vendorized zf1 with composer
* [x] load composer autoloader before zf1
* [x] Implement headAction for all Zend_Rest_Controller based controllers
* [x] switch to yml dataset to get around string only limitations of xml sets (also removed warning in readme)
* [x] use year 2044 as hardcoded date for tests since it is in the future and has the same days like previously used 2016
* [x] make tests easier to run when accessing phpunit directly
* [x] clean up test helper to always use airtime.conf
* [x] switch test dbname to libretime_test
* [x] test db username password switched to libretime/libretime
* [x] install phpunit with composer in a clear version (make tests easier to reproduce on other platforms)
* [x] remove local libs from airtime repo (most of airtime_mvc/library was not needed of in vendor already)
* [x] configure composer autoloading and use it (also removed requires that are not needed anymore)
* [x] add LibreTime prefix for FileNotFoundException (phing had a similar class and these are all pre-namespace style)
* [x] add .travis.yml file
* [x] make etc and logdir configurable with LIBRETIME_CONF_DIR and LIBRETIME_LOG_DIR env (so travis can change it)
* [x] slight cleanup in config for travis not to fail
* [x] add cloud_storage.conf for during test runs
* [x] rewrite mvc testing docs and move them to docs/ folder
* [x] don't use `static::class` in a class that does not have a parent class, use `__CLASS__` instead.
* [x] don't use `<ClassName>::class`, since we already know what class we want `"<ClassName>"` ist just fine.
* [x] fix "can't use method in write context" errors on 5.4 (also helps the optimizer)
* [x] add build status badge on main README.md

Fixes https://github.com/LibreTime/libretime/issues/4

The PHP parts of https://github.com/LibreTime/libretime/pull/10 get obsoleted by this change and it will need rebasing.

This also contains https://github.com/LibreTime/libretime/pull/8, the late static binding compat code was broken for no reason and until CentOS drops php 5.4 there is no reason I'm aware of not to support it. I inlined #8 since the test would be failing on php 5.4 without the change.

If you want to run tests you need to run `composer install` in the root directory and then `cd airtime_mvc/tests && ../../vendor/bin/phpunit`. For the tests to run the user `libretime` needs to be allowed to create the `libretime_test` database. See `docs/TESTING.md` for more info on getting set up.
2017-02-27 17:59:01 +01:00