Commit Graph

333 Commits

Author SHA1 Message Date
jo ad7686e8a7 feat(api): update env var settings loading
BREAKING CHANGE: environment variables names changed
'LIBRETIME_CONF_DIR' was removed
'LIBRETIME_CONF_FILE' was renamed to 'LIBRETIME_CONFIG_FILEPATH'
2022-01-17 09:49:22 +02:00
Jonas L 4443528cf8
ci: cancel duplicate test workflow (#1513) 2022-01-13 19:35:42 +02:00
Jonas L c2cd1c28b8
chore: rename master branch to main (#1508) 2022-01-13 16:03:31 +00:00
dependabot[bot] db8dd87d61
chore: bump amannn/action-semantic-pull-request from 3.5.0 to 3.6.0 (#1500)
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v3.5.0...v3.6.0)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-10 11:13:06 +02:00
Jonas L 9bad45acb3
ci: add shared to allowed commit scopes (#1494) 2022-01-07 17:34:59 +02:00
Jonas L 3a615cafa0
feat: create libretime_shared package (#1349)
* feat: create libretime_shared package

- We don't use pydantic.BaseSettings because of some
  incompatble loading behavior.

* fix: whitelist pydantic in pylintrc

* docs: update to new BaseConfig behavior

* docs: change confusing config filepath
2022-01-06 15:40:52 +02:00
jo 4a7f2290f1 ci: pin action-semantic-pull-request version 2022-01-04 08:26:27 +01:00
Jonas L bd43688757
ci: add semantic pull request linting (#1472)
* ci: add semantic pull request linting

* ci: add missing link to conventional commits
2022-01-04 09:15:08 +02:00
Jonas L 0b994c4e20
ci: add closed references notificier workflow (#1467)
This workflow will check for issue links in the code
that has been closed upstream and can be dealt with.
2022-01-04 08:51:03 +02:00
Jonas L e5ac78414e
chore(ci): let dependapot catch up with commit syle (#1468) 2022-01-03 08:02:06 +02:00
Kyle Robbertze 360bcb0a9c chore: add semantic-release prefix to dependabot commits 2021-11-17 10:20:19 +01:00
Jonas L 4057c88cf0
feat: debian 11 support (#1292)
* Debian 11 Support

Run api ci test on bullseye as well

* Silan does not work for mp3 on bullseye

* Liquisoap does not fail with wma files on bullseye
2021-11-09 11:21:40 +02:00
Kyle Robbertze 8200df1c40 ci: add missing focal database test run 2021-11-08 20:57:41 +01:00
Kyle Robbertze 7182390000
feat: add support for Ubuntu Focal 20.04 (#1168)
Co-authored-by: Valerio Bozzolan <gnu@linux.it>
2021-11-04 09:55:50 +02:00
Kyle Robbertze 6ca1ca2aec
feat: run API tests in CI (#1421)
* feat: run API tests in CI

* fix: remove incorrect test for guest user viewing themself
2021-10-18 14:17:34 +02:00
Jonas L 7837cc2320
Add dependabot check for legacy composer (#1392) 2021-10-17 18:25:50 +02:00
Jonas L 5e8d8db6e9
Feature: Support php7.4 (#1354)
* Run CI tests against php 7.4

* Sort composer dependencies

* Remove unused Aws S3 php library

* Pin simplepie dependency to ^1.5

* Pin getid3 dependency to ^1.9

* Pin composer semver to ^3.2

* Pin php-amqplib to ^2.12

* Drop sentry logging support

* Update composer dependencies

* Move propel regenerate to Makefile

* Regenerate propel files with v1.7.0

* Pin propel orm to ^1.7

* Regenerate propel files with v1.7.2

* fix: generator_version in airtime-conf-production.php

* Replace propel/propel1 with jooola/propel1

* Regenerate propel files with v1.7.3-dev

* Fix php7.4 compatibility

Using php-cs-fixer:

    '@PhpCsFixer' => true,
    'concat_space' => ['spacing' => 'one'],
    'ordered_class_elements' => false,
    'yoda_style' => false,
    '@PHP74Migration' => true,
    'assign_null_coalescing_to_coalesce_equal' => false,
    'ternary_to_null_coalescing' => false,
    'heredoc_indentation' => false,
    '@PHP74Migration:risky' => true,
    'declare_strict_types' => false,
    'void_return' => false,
    'use_arrow_functions' => false,

* Fix pre-commit
2021-10-17 17:19:53 +02:00
Jonas L 30b3470a06
Better format enforcing (#1391)
* Add shared python format-check target

* Add .format-check to api lint target

* Format api code with makefile format target

* Add .format-check to tools lint target

* Add .format-check to analyzer lint target

* Format analyzer code with makefile format target

* Add .format-check to celery lint target

* Add .format-check to api_client lint target

* Format api_client code with makefile format target

* Add .format-check to playout lint target

* Run CI linting in parallel

* Disable isort in pre-commit
2021-10-17 16:24:37 +02:00
jo 19c816f294 Update paths after playout move 2021-10-17 08:02:47 +00:00
jo 8fe0156d4f Update paths after api_client move 2021-10-17 08:02:47 +00:00
jo cf36eec5f8 Update paths after wroker move 2021-10-17 08:02:47 +00:00
jo 08f13d850c Update paths after analyzer move 2021-10-17 08:02:47 +00:00
Kyle Robbertze 9f1e41e6fa
Fix release action (#1401)
* correctly output file content

* trigger on version tags

* install gettext

* do not allow manual releases

* use maintained release action
2021-10-15 16:50:18 +02:00
Kyle Robbertze 9e9f6b433a
Create alpha.10 release notes (#1395)
* create alpha.10 release notes

* fix table of context to be markdown

* add python script cleanup

* fix links

* add API v2 feature

* Remove /usr/local/bin references

* add issue links to known issues and fix API v2 description

* Sort cleanup command args

* Better cleanup comments

Co-authored-by: Jonas L <jooola@users.noreply.github.com>
2021-10-15 15:49:45 +02:00
Jonas L 4335795c52
chore: Enhance release workflow (#1400)
* Rename package-release to release

* Move tarball creation in Makefile

* Enhance release workflow

* Add --ignore-platform-reqs to composer build
2021-10-15 14:59:59 +02:00
jo 81b0f22277 Improve legacy Makefile 2021-10-15 01:49:56 +02:00
jo 6a2b90b44d Add php-cs-fixer ci job 2021-10-12 11:07:56 +02:00
jo c4c89eae19 Fix paths after legacy rename 2021-10-11 13:43:39 +02:00
Kyle Robbertze 87525efaba update to use new labels for issue filing 2021-09-21 22:01:05 +02:00
jo ed8a63a284 Update labels 2021-09-18 17:12:46 +02:00
jo 78344167da Allow ci image user to run sudo without password 2021-09-16 21:34:41 +02:00
Kyle Robbertze 56f5a84146
Merge pull request #1339 from jooola/feat/ci_start_linting
Start linting 🎉 !
2021-09-13 12:01:31 +00:00
jo 9a7c3e0d21 Replace build.sh with make to manage airtime_mvc 2021-09-11 04:55:51 +02:00
jo 03b109dcb5 Fix paths after composer.* files move 2021-09-11 04:48:53 +02:00
jo 15145039b3 Add annotations matchers 2021-09-10 15:14:48 +02:00
jo c9322fbcc8 Use makefile in test jobs
Reorder test job sorting
2021-09-10 15:14:48 +02:00
jo 00b73a3819 Add CI linting job
Use a single lint job

Run linting inside a container
2021-09-10 15:14:48 +02:00
Kyle Robbertze 31c2d2ee7f disable interactive frontend for apt in docker builds 2021-09-09 20:16:22 +02:00
jo 3677a08656 Prepare Ubuntu 20.04 support
Start building docker dev images for testing purpose.
2021-09-09 17:54:27 +02:00
jo 1ec11f2a87 Prepare Debian 11 support
Start building docker dev images for testing purpose.
2021-09-09 16:31:55 +02:00
jo 7f1c368c13 Run tools CI job 2021-09-07 23:10:34 +02:00
jo 7cb3501540 Rename scripts/ to tools/ 2021-09-07 23:03:19 +02:00
jo bbabffcc0d Remove unused lock workflow 2021-09-02 16:12:14 +02:00
jo 610a1d673b Fix CI docker test image
- Lowercase registry organisation name
- Always use LibreTime's org dev image for tests
- Never build the dev image on forks
2021-09-01 17:06:40 +02:00
jo 84c334eafb Add missing ffmpeg package for fixtures generation 2021-09-01 16:00:08 +02:00
jo 4a3ce313d1 Enhance CI workflow
- Explode tests in multiple jobs.
- Cache apt dependencies in a shared docker image.
- Run tests on different distribution (debian/ubuntu, and maybe centos).
2021-09-01 16:00:08 +02:00
jo 8ac5c1ba03 Generate analyzer fixtures using ffmpeg 2021-08-30 21:23:38 +02:00
jo 2db156040c Remove xenial file leftover 2021-08-17 14:15:12 +02:00
jo 5ec5ef8a40 Fix CI python app installation 2021-08-17 12:24:00 +02:00
jo 9881eebf55 Fix shellcheck warnings 2021-08-17 12:23:36 +02:00
jo dc999f9006 Fix shellcheck errors 2021-08-17 12:23:32 +02:00
jo 6c2e547808 Allow custom shellcheck severity
Normal severity is normal.

CI severity is set to warning, but this should be
changed to style (default) once most
of the scripts are iether gone or modernized.
2021-08-17 12:20:52 +02:00
jo 38513c3bed Add shell-check job
We don't want to fail on shellcheck yet.
2021-08-17 12:20:52 +02:00
jo 5b64b29bdc ci: use test matrix for php and python tests 2021-08-15 13:53:30 +02:00
Kyle Robbertze f94e90a7f6 update documentation to remove bionic 2021-07-12 10:13:07 +02:00
Kyle Robbertze fa5db502ed Drop Ubuntu Xenial support
Fixes: #1226
2021-07-06 10:27:17 +02:00
Kyle Robbertze 817919b5be Add pull request template
Fixes: #794
2021-07-03 18:43:26 +02:00
Kyle Robbertze 16a9168d4f
Merge pull request #1227 from jooola/update_contibuting
Improve CONTRIBUTING and community links
2021-06-13 18:37:08 +02:00
jo ed3d527c09 Update CI to run pytest 2021-06-08 14:28:16 +02:00
jo 8d9d1e43c5 Update CI to run api_clients pytest 2021-06-08 14:06:32 +02:00
jo 19b7573b6f Improve CONTRIBUTING and community links
- Enhance CONTRIBUTING.md file.
- Add extra links to issue chooser.
2021-06-08 00:39:26 +02:00
Kyle Robbertze e8d5481422
Merge pull request #1210 from jooola/setup-pre-commit
Add pre-commit setup
2021-06-07 23:14:56 +02:00
jo cd17d0e6f9 Setup dependabot config 2021-06-07 23:08:32 +02:00
jo 35e325fbf0 Move lint/pre-commit to test/pre-commit workflow 2021-06-05 00:39:35 +02:00
jo 0180fa0e49 Fix shebangs 2021-06-04 17:06:05 +02:00
jo 1af089219f Bump pre-commit/actions version to 2.0.3 2021-06-04 17:06:05 +02:00
Jonas L c04daca033 Pin pre-commit action version
Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>
2021-06-04 17:06:05 +02:00
jo efe4fa027e Format code using prettier 2021-06-04 17:04:53 +02:00
jo 65f7b41487 Fix spelling 2021-06-04 17:04:53 +02:00
jo 0cd499eee1 Add pre-commit setup
- Add pre-commit hooks
- Add github action to enforce pre-commit setup

For any hooks required for a 'sub project', for
instance the UI. It will be possible to create custom hooks,
and call some package scripts in the package.json file.

Fixes #1208
2021-06-04 17:04:53 +02:00
Kyle Robbertze 6beece7057 run CI on pull request updates 2021-05-31 10:54:07 +02:00
Kyle Robbertze ab3cc1afdd do not run release on every push to master 2021-05-27 15:31:30 +02:00
Kyle Robbertze b6d83d9b9b install for all python apps 2021-05-21 16:50:57 +02:00
Kyle Robbertze ca28cc5170 make release on tags draft 2021-05-21 16:45:29 +02:00
Kyle Robbertze c7c62b1268 drop Python tests on xenial 2021-05-21 16:40:29 +02:00
Kyle Robbertze e63fa940df pass environment to step 2021-05-21 16:36:12 +02:00
Kyle Robbertze 629d1d451b set log dir permissions 2021-05-21 16:29:45 +02:00
Kyle Robbertze 6193d80e2a group install steps 2021-05-21 16:22:50 +02:00
Kyle Robbertze 6f6d90fad7 update replaygain values 2021-05-21 16:15:50 +02:00
Kyle Robbertze ed8366cf58 install mock 2021-05-21 15:45:05 +02:00
Kyle Robbertze 29086efd9b install nose 2021-05-21 15:42:20 +02:00
Kyle Robbertze a720ad13e1 make scripts executable 2021-05-21 15:36:41 +02:00
Kyle Robbertze d3ed443888 do not fail fast 2021-05-21 15:32:58 +02:00
Kyle Robbertze 359d351e20 fail python test when tests fail 2021-05-21 15:30:26 +02:00
Zachary Klosko 78e78243f7 Using fixed date in tests, removing extra dependencies 2020-12-29 10:03:41 -05:00
Zachary Klosko 1476b69abc Oops 2020-12-29 10:03:41 -05:00
Zachary Klosko 277297e3ba Adding back Bionic test 2020-12-29 10:03:41 -05:00
Zachary Klosko bbb909a467 Nevermind 2020-12-29 10:03:41 -05:00
Zachary Klosko 752f354d0b Rearranging cacheing 2020-12-29 10:03:41 -05:00
Zachary Klosko a16739bb9b Trying out cacheing 2020-12-29 10:03:41 -05:00
Zachary Klosko f1a58fc8ca Reverting Python testing 2020-12-29 10:03:41 -05:00
Zachary Klosko e67bf8545d Changing call on PHP script 2020-12-29 10:03:41 -05:00
Zachary Klosko 0f1da44a87 Reaching brink of insanity 2020-12-29 10:03:41 -05:00
Zachary Klosko b2e34e6bb1 Switching to Github Action 2020-12-29 10:03:41 -05:00
Zachary Klosko 572a3a273c Updating Composer dependencies 2020-12-29 10:03:41 -05:00
Zachary Klosko 621a08dc74 Back to Xenial 2020-12-29 10:03:41 -05:00
Zachary Klosko 314695f8f9 Reverting to Bionic tests, moving up Python tests 2020-12-29 10:03:41 -05:00
Zachary Klosko 1758f3bf88 Switch test to Xenial 2020-12-29 10:03:41 -05:00
Zachary Klosko 29b853c813 Adding in ls for debugging 2020-12-29 10:03:41 -05:00
Zachary Klosko 7bad165ade Changing dependencies 2020-12-29 10:03:41 -05:00
Zachary Klosko 537ceed683 Readding PHP dependencies on install 2020-12-29 10:03:41 -05:00
Zachary Klosko 3877aead8c Adding PHP setup Github Action 2020-12-29 10:03:41 -05:00
Zachary Klosko 6b55206eff Merging installer strings 2020-12-29 10:03:41 -05:00
Zachary Klosko 09dc9f53f3 Trying @pashagolub's suggestion 2020-12-29 10:03:41 -05:00
Zachary Klosko ab2bb53ff2 Adding back PHP and Postgres actions 2020-12-29 10:03:41 -05:00
Zachary Klosko 488a611440 Adding back PHP tests (I think) 2020-12-29 10:03:41 -05:00
Zachary Klosko 2adf947148 Removing PHP dependencies in test install 2020-12-29 10:03:41 -05:00
Zachary Klosko aabef630c1 Removing PHP Composer test 2020-12-29 10:03:41 -05:00
Zachary Klosko 25904e164f Removing Postgre, Xenial from testing 2020-12-29 10:03:41 -05:00
Zachary Klosko 85e1f29ea4 Adding systemctl restart postgres 2020-12-29 10:03:41 -05:00
Zachary Klosko 76a52a8ebd Adding sudos to install.sh 2020-12-29 10:03:41 -05:00
Zachary Klosko da8ab32073 Typo 2020-12-29 10:03:41 -05:00
Zachary Klosko 365b65f21f Merging Bionic and Xenial tests 2020-12-29 10:03:41 -05:00
Zachary Klosko b444f7d3b1 Adding -x to nosetests and correcting DB setup scripts 2020-12-29 10:03:41 -05:00
Zachary Klosko 97db37e9f2 Adding back exclusions, fixing asset_path 2020-12-29 10:03:41 -05:00
Zachary Klosko 6e57e10169 New idea: work out of one directory 2020-12-29 10:03:41 -05:00
Zachary Klosko 1008182c64 Working on fixing packaging process 2020-12-29 10:03:41 -05:00
Zachary Klosko 25a40d2131 Attempting database install fix 2020-12-29 10:03:41 -05:00
Zachary Klosko 35541522f7 Fixing database issues in testing 2020-12-29 10:03:41 -05:00
Zachary Klosko cd6e105c6e Automates import of release notes in body
Requires RELEASENOTES file in repo root
2020-12-29 10:03:41 -05:00
Zachary Klosko dbbc666a8d Automating packaging take 1 #v.0.1 2020-12-29 10:03:41 -05:00
Zachary Klosko 34c511208c Bionic and Xenial tests work
Not sure what PHP version is being used for each, but composer install works on both tests
2020-12-29 10:03:41 -05:00
Zachary Klosko 70b8b1bfe1 Add manual run trigger 2020-12-29 10:03:41 -05:00
Zachary Klosko e58bbd31e8 Adding triggers for PRs 2020-12-29 10:03:41 -05:00
Zachary Klosko fc8b3df0ee Removing sudo 2020-12-29 10:03:41 -05:00
Zachary Klosko 977f5e9669 Establishing Xenial test workflow 2020-12-29 10:03:41 -05:00
Kyle Robbertze a723ac040b Add sponsor button 2020-05-19 22:07:50 +02:00
Kyle Robbertze b768bfd0f7 do not mark milestone issues and release blockers as stale 2019-10-20 22:28:40 +02:00
Kyle Robbertze 2c9584f631
Merge pull request #897 from radiorabe/feature/stale-bot
Configure stale bot
2019-10-20 22:01:18 +02:00
Lucas Bickel 97e92f0cf6 (probot) Configure stale bot 2019-10-20 21:53:47 +02:00
Lucas Bickel 09d7397e60 (probot) proper config for lock bot 2019-10-20 14:31:51 +02:00
Lucas Bickel dfcd3dd837
Create issue templates 2018-12-23 14:42:29 +01:00
Lucas Bickel 35ef4f8a66 Configure invite-contributors probot app 2018-02-05 18:22:43 +01:00