Commit graph

33 commits

Author SHA1 Message Date
Antoine Gersant
33997fc8e1 Trigger demo deployment on release 2022-11-14 02:06:56 -08:00
Antoine Gersant
818dfe877c Update codecov github action 2021-11-14 14:17:36 -08:00
Tobias Schmitz
d01583b406
add api parameter for thumbnail size (#144)
* add api parameter for thumbnail size

* make max_dimension optinal in case of native resolution

* add tests for thumbnail size

* fix typo

* fix thumbnail size tests

* make unwrap more explicit

* remove print statement

* update workflows

* reduce thumbnail variations

* add removed token

* Update coverage.yml

* fix typo

* hopefully prevent coverage timeout

- split up thumnail tests
- reduce threadcount used for test execution

* get thread count using github actions specific step

* use fixed thread count of 4

* run coverage tests in release mode

* ignore large and native thumbnail_size tests in coverage
2021-06-05 02:24:25 -07:00
Antoine Gersant
2f71cf2db7 Checkout release branch when making a release 2020-12-30 22:56:26 -08:00
Antoine Gersant
c2807b60de
Replace rocket with actix-web (#116)
* Adds actix dependency

* Failed attempt at test harness using actix

* Fixed test panic

* Simplified tests

* Run web server in tests

* Send json payloads

* Static file serving

* Default shutdown timeout

* Implement version endpoint

* Implements #[get("/initial_setup")]

* WIP put_settings endpoint

* Adds AdminRights extractor

* Fixed a bug where AdminRights extractor always failed

* Implements collection endpoints

* Re-use system runnner between calls

* Preserve client headers between API calls (tentative)

* Fixed test interferences

* Implemented more endpoints

* Implemented audio file serving

* Fixed sketchy responses

* Implements thumbnail endpoint

* Login endpoint WIP

* Implement login endpoint

* Auth support

* When using HTTP headers to authenticate, response now includes expected cookies

* Tentative fix for server not responding within docker

* Adds logging middleware + browse troubleshooting

* Tentative fix for path decoding issues

* Tentative fix for broken path decoding

* Fix routing issues w/ paths

* Fixed a bug where auth cookies were sent in every response

* More lenient test timeouts

* Fixed a bug where recent/random endpoints required trailing slashes

* Compilation fix for rocket branch

* More useful test matrix

* Signed session cookies (#106)

* Isolate conflicting dependencies between rocket and actix versions

* Removed macOS from test matrix

* Glorious test harness simplification

* Removed RequestBuilder

* Shutdown on ctrl+c

* Pin to stable

* Drop rocket

* Simplify dependencies

* Removed stray rocket dependency

* Better test matrix

* Skip windows build without bundled sqlite

* Offload thumbnail creation to a thread pool

* Compress responses when possible

* Removed unused manage state

* Fixed a bug where large playlists could not be saved

* Return HTTP 401 for last fm requests without authentication

* Web block (#115)

* web::block around DB operations

* web::block during auth utils hitting DB

* Fixed incorrect http response code for missing thumbnail

* Removed unecessary unwrap

* Eliminated unecessary unwrap
2020-12-14 21:18:44 -08:00
Antoine Gersant
6be6d2a7dc Cosmetic change 2020-12-14 19:32:10 -08:00
Antoine Gersant
e25af0e9b5 Fixed issue where releases may not get their git tag 2020-12-13 20:05:42 -08:00
Antoine Gersant
2c21609699 Fetch URL for uploading release assets 2020-12-13 19:44:41 -08:00
Antoine Gersant
847d61f62b
One click release (#113)
* Make release from Github UI
2020-12-13 19:24:06 -08:00
Antoine Gersant
866d82a16c
Make sqlite bundling optional (#110)
* Manually specify libsqlite version

* Make sqlite bundling optional

* Skip tests on windows without bundled sqlite
2020-12-08 01:22:17 -08:00
Antoine Gersant
55a4f64b3a
Bundle SQLite (#109) 2020-12-08 00:14:16 -08:00
Antoine Gersant
33121bc0a3
Pin rust toolchain version (#108) 2020-12-07 22:08:37 -08:00
Antoine Gersant
7ea97b0abf More conservative workflow config 2020-12-05 20:38:01 -08:00
Antoine Gersant
538b41a2b4
Use standard directories when running on Linux (#91)
* Use standard Linux directories for application data (https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)

* Use standard system directories

* Cleanup all Polaris files during uninstall

* Expose get_pid_directory to rest of the crate

* Add separate targets for install binary and data files, clean up makefile

* Use environment variables for directory locations during install process

* On Linux, read locations from environment variables at compile time

* Split static_directory in two (web and swagger directories)

* Follow recommendations from the Make manual

* Avoid redundant directories

* Added workflow to validate installer setup

* Added CLI options to locate log file, pid file and cache directory

* Fixed an issue where build command did not support the xdg/system switch

* Renamed log option to log-level

* Fixed an issue where xdg install would do a system build

* Use re-usable action to make linux release

* Avoid nested actions (see https://github.com/actions/runner/issues/646)

* Updated installation instructions

* Replaced deprecated use of set-env
2020-11-26 15:57:08 -08:00
Antoine Gersant
341a03574b added test coverage workflow 2020-09-21 02:59:45 -07:00
Antoine Gersant
107e63caca Tentative fix for CI breakage 2020-06-13 19:24:47 -07:00
Antoine Gersant
4e76a11e7a Pull latest polaris web release when making a polaris release 2020-02-01 19:29:52 -08:00
Antoine Gersant
503eed8b62 Removed traces of polaris-web submodule 2020-02-01 19:28:31 -08:00
Antoine Gersant
b7b7c6e737 Unpin nightly rustc version 2020-01-22 21:17:28 -08:00
Antoine Gersant
78c8ca8aa2 Unpin rustc nightly 2020-01-20 18:58:45 -08:00
Antoine Gersant
b2ee2fe701
Automate release process (#62)
Added Github Actions workflow to generate release
2020-01-20 18:21:47 -08:00
Antoine Gersant
2efc0df04e Don't build without a backend 2020-01-18 14:59:19 -08:00
Antoine Gersant
ee71df9d0b Lock CI rustc to working nightly (https://github.com/rust-lang/rust/issues/68264) 2020-01-18 14:48:47 -08:00
Antoine Gersant
77a1e86f84 Fix CI breakage 2019-12-08 16:40:11 -08:00
Laurențiu Nicola
44be1966e5 Install libsqlite3-dev on CI 2019-10-22 08:31:34 +03:00
Laurențiu Nicola
cb72ab1ac7 Enable CI on PRs 2019-10-22 08:31:34 +03:00
Antoine Gersant
5666896275
Renamed workflow 2019-09-29 00:07:56 -07:00
Antoine Gersant
e8fc576052
Don't use third-party action to clone submodules 2019-09-28 23:42:16 -07:00
Antoine Gersant
37edf64e17
Build matrix for OS and features 2019-09-28 23:28:27 -07:00
Antoine Gersant
2632e083f6 Checkout submodules before building 2019-09-28 23:05:35 -07:00
Antoine Gersant
98cd98dd4d Install nightly toolchain 2019-09-28 22:41:56 -07:00
Antoine Gersant
fa0dd54ce6 Fixed yaml syntax 2019-09-28 22:38:12 -07:00
Antoine Gersant
0d7296b024 Github actions hello world 2019-09-28 22:34:03 -07:00