Commit graph

174 commits

Author SHA1 Message Date
Thomas Citharel 822a16fc53
Update Postgis image used in tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-06 19:56:10 +02:00
Thomas Citharel 1109ca1bc5
Use a specific version of dind
Follow-up to 7a82fed92a

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-03-31 11:24:23 +02:00
Thomas Citharel 7a82fed92a
Use specific version of Docker dind
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-03-28 10:43:06 +02:00
Thomas Citharel e50f3b1967
Follow-up to 969cfc78be
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-03-24 16:43:36 +01:00
Thomas Citharel 969cfc78be
Upgrade buildx version in CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-03-23 14:51:26 +01:00
Thomas Citharel b70ed5a76e
Show credo diff in CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-01-18 14:17:48 +01:00
Thomas Citharel 79901e85ee
Update upload package image
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-12-16 16:49:37 +01:00
Thomas Citharel 9e3b6ec419
Reduce package expiration to two days
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-12-13 17:59:54 +01:00
Thomas Citharel 822a5604e0
Fix docker build scheduled job
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-29 11:07:44 +01:00
Thomas Citharel 22550a60e9
Put latest docker tag directly from CI
Also only do amd64 architecture for tags, not main

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-26 09:45:55 +01:00
Thomas Citharel 200adf272c
Move release package at correct path for CI upload
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-15 13:37:00 +01:00
Thomas Citharel d653b038c5
Also send ARM links in releases
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-12 17:20:27 +01:00
Thomas Citharel ccce64d6cb
Update arm/arm64 packages as well
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-10 20:44:50 +01:00
Thomas Citharel 89bbafb44c
Don't digest release files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-10 20:44:50 +01:00
Thomas Citharel 73a7ef988f
Rename master branch to main
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-09 09:12:04 +01:00
Thomas Citharel c806beddcd
Add a specific timeout for the Docker multiarch build
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-06 10:06:48 +01:00
Thomas Citharel ef1e4124de
Allow release and Docker multiarch building
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-22 16:29:58 +02:00
Thomas Citharel 0792bf5445
Update tzworld at runtime
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-19 12:18:03 +02:00
Thomas Citharel 312e71d3ec
Compress the CI release artifacts before passing to upload
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-18 14:46:04 +02:00
Thomas Citharel 3f5f86db99
Echo size of artifact after packaging
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-18 14:16:48 +02:00
Thomas Citharel d2ccc21f91
Add tz_world.update to release scripts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-18 11:13:36 +02:00
Thomas Citharel 9621caf661
Bump required version to Elixir 1.12 and remove legacy tests
Drops support for OTP < 22

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-11 18:46:16 +02:00
Thomas Citharel 6e136ff8b5
Update tz_world before running tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-11 18:28:28 +02:00
Thomas Citharel 0c667b13ae
Export participants to different formats
* CSV
* PDF (requires Python dependency `weasyprint`)
* ODS (requires Python dependency `pyexcel_ods3`)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-05 10:52:55 +02:00
Thomas Citharel 16f90254a0
Revert "Try to add --cache to kaniko"
This reverts commit 3eb56b57aa.
2021-08-09 08:42:15 +02:00
Thomas Citharel 3eb56b57aa
Try to add --cache to kaniko
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-03 18:10:22 +02:00
Thomas Citharel 51f7916fa0
Don't save artifacts from packaged releases, we have them on
packages.jmz.org

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-07-21 20:53:43 +02:00
Thomas Citharel 1e75b009bd
Remove project title in the release title
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-27 16:21:19 +02:00
Thomas Citharel eee2d63309
Add gawk for release-create script
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-21 13:32:54 +02:00
Thomas Citharel a9199dc20d
Fix Gitlab-ci
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-21 11:41:45 +02:00
Thomas Citharel 0fde2264f0
Fix GitlabCI for tags
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-21 11:33:51 +02:00
Thomas Citharel 83dabfcd70
Change .gitlab-ci for new release workflow
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-21 11:30:02 +02:00
Thomas Citharel 4169db1e73
Move from the mdillon postgis image to postgis/postgis
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-07 19:41:59 +02:00
Thomas Citharel bda7401943
Add a legacy test config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-07 17:21:41 +02:00
Thomas Citharel 18279f964b
Fix building Docker images on master
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-04-23 19:12:52 +02:00
Thomas Citharel b356fb2b09
Fix release generation path
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-16 11:07:44 +01:00
Thomas Citharel 2cc0b4ac78
Fix upload release tar archive generation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-15 17:06:51 +01:00
Thomas Citharel bfeee95329
Fix release path in CI push
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-15 16:01:49 +01:00
Thomas Citharel 9763ddcf2b
Install deps when building docs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-09 10:06:54 +01:00
Thomas Citharel f0d152f510
Fix release path
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-02-10 14:39:24 +01:00
Thomas Citharel 496debd6f3
Change everything for releases
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-02-10 14:39:09 +01:00
Thomas Citharel 773ae75373
Disable release-create job for now
Need to rethink how releases are created first

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-27 11:43:12 +01:00
Thomas Citharel 491a40460f
Fix package-app job when used with other jobs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-27 11:42:46 +01:00
Thomas Citharel 8f156d3b5c
Fix sobelow lint
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-25 18:06:50 +01:00
Thomas Citharel e6da458b49
Add sobelow to CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-22 23:24:51 +01:00
Thomas Citharel 7b051346a4
[CI] Fix Gitlab pages
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-14 17:01:44 +01:00
Thomas Citharel 2734cae4b7
Rename stages
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-14 16:00:08 +01:00
Thomas Citharel 3c441306eb
Renable Mix docs job
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-14 15:47:12 +01:00
Thomas Citharel 9f27a941a2
[CI] Remove cd js and use --cwd instead
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-14 15:45:10 +01:00
Thomas Citharel eef4ea178d
[CI] Add back install into before_script: parts
Because cache is really unreliable

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-14 15:28:27 +01:00
Thomas Citharel 79e00a65b8
Add junit to exunit
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-13 17:35:16 +01:00
Thomas Citharel b70321e377
Add JUnit report to Jest front-end tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-13 17:35:16 +01:00
Thomas Parisot 5c72052258 Publish Docker images when tagged on main repo 2021-01-13 11:36:53 +01:00
Thomas Parisot 49acf2784d Fasten release process 2021-01-13 11:36:53 +01:00
Thomas Parisot 4dff52bbe0 Release Elixir and frontend assets as part of the release 2021-01-13 11:36:53 +01:00
Thomas Citharel 962e9aade5
Split CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-01-11 14:00:40 +01:00
Thomas Citharel ae03f84950
Add yarn lint back to CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-12-14 10:21:33 +01:00
Thomas Citharel c43aeb8a3e
Update CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-12-11 15:44:48 +01:00
Thomas Citharel 2f25fa0ca6
Introduce basic js unit tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-12-02 12:08:32 +01:00
Thomas Citharel 74fa9dca8c
Build docker from CI and move docker-compose config in another repo
https://framagit.org/framasoft/joinmobilizon/docker

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-11-09 10:04:55 +01:00
Thomas Citharel d965997c78
Move docs to separate repo
See https://framagit.org/framasoft/joinmobilizon/documentation

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-22 12:12:17 +02:00
Thomas Citharel d0529a503d Fix Gitlab CI for Docs 2020-10-21 09:54:16 +02:00
Thomas Citharel f3566430a3
Introduce multi-lingual docs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-21 09:04:42 +02:00
Thomas Citharel 764d695190 Make prettier ignore i18n JSON files. 2020-06-26 15:23:24 +02:00
Thomas Citharel 652a3d6bb5
Add prettier to CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-25 12:30:31 +02:00
Thomas Citharel f8ca9d96b1
Typo
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-04 11:44:27 +02:00
Thomas Citharel 42f07c17e5
Disable mix docs for now
Because of https://github.com/elixir-lang/ex_doc/issues/1172

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-04 10:58:27 +02:00
Thomas Citharel 1b2f107ada
Disable cypress tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-03 19:04:22 +02:00
Thomas Citharel 4144e9ffd0
Introduce group basic federation, event new page and notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-03 16:01:26 +02:00
Thomas Citharel 9e3df495dc
Move configuration to traditional way
️ This is the way.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-02-06 16:12:13 +01:00
Thomas Citharel 5a18ec2ed3
disable styleguide build
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-01-30 12:18:10 +01:00
Thomas Citharel 0750f06484
Remove mkdocs-git-revision-date-localized-plugin hack in CI
And rebuild docker image with new version

See https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/3

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-12-16 16:49:39 +01:00
Thomas Citharel 9655dd1720
Patch mkdocs-git-revision-date-localized-plugin to work with Python 3.5
So that CI may build the docs. See https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/3

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-12-16 09:51:53 +01:00
Thomas Citharel 4fab4e1d25
Move docs to mkdocs and improve them
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-17 20:00:09 +01:00
Thomas Citharel 64ef8e04e2
Disable Cypress in CI for now
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-17 19:33:24 +01:00
Thomas Citharel f6036c8461
Fix Cypress run on CI
Had written the condition the wrong way

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-16 13:43:41 +02:00
Thomas Citharel ef7dc3f020
Make cypress run even when no key (merge requests from forks)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-16 11:30:57 +02:00
Thomas Citharel 5e75daa732
Add e2e seed and test event creation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-12 19:34:16 +02:00
Thomas Citharel 51e88d9522
Put back Cypress recording
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-11 10:45:42 +02:00
Thomas Citharel 039afdd479
stop recording for now
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-10 17:42:40 +02:00
Thomas Citharel fea6a1f7dc
make sure cypress binary is installed
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-08 14:11:32 +02:00
Thomas Citharel 39a45ca59e
fixup
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-07 11:27:06 +02:00
Thomas Citharel b362fcc59e
fixup
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-07 11:15:19 +02:00
Thomas Citharel d2035202e3
fixup
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-07 10:59:21 +02:00
Thomas Citharel c7cf89c473
fixup
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-07 10:26:34 +02:00
Thomas Citharel a736965e91
Add basic styleguide
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-07 10:25:21 +02:00
Thomas Citharel 77d286ebb6
Introduce Cypress
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-06 18:28:18 +02:00
Thomas Citharel 166979a297
Move to yarn
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-11 11:58:27 +02:00
Thomas Citharel 7a4197a444
Refactor CI
Closes #98

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-22 11:37:58 +01:00
Thomas Citharel 1309fdd3da
Add npm run lint to CI and to docs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-22 11:04:57 +01:00
Thomas Citharel 08a8938a6f
Rename job to pages
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-18 12:47:21 +01:00
Thomas Citharel 43cc2309aa
Fix CI deploy
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-18 12:37:04 +01:00
Thomas Citharel bba6629046
Better docs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Nicer docs

No 3rd stage

Add mix.deps get before docs

Add :ex_doc on test env so that it runs into CI
2019-03-18 12:10:29 +01:00
Thomas Citharel add39a9cd1
Add CI jobs (with allow_failure) for dependencies updates
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-08 13:42:34 +01:00
Thomas Citharel 7dd7e8fc36
Fix mix format and format migrations too
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fix credo warnings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Show elixir version

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Also lint migrations

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Reset allow failure to false

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 14:53:09 +01:00
Thomas Citharel 2f2c538cc9
Add Credo checks and refactor code
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Make Logger.debug calls lazy

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Add missing @moduledocs

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Refactor according to credo

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Final fixes and add credo to CI

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Closes #52
2019-01-03 15:52:48 +01:00
Thomas Citharel 6885c73aa8
Change configuration and docker compose
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-03 11:33:52 +01:00
Thomas Citharel 932837f7bb Introduce CI stages (front / back), mix format runs in parallel 2018-12-18 12:26:10 +01:00
Thomas Citharel 3ba4fb351e
Embed GeoIP database into Docker Image instead of downloading it each
time

Closes #42

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-18 11:24:22 +01:00
Thomas Citharel 1e86797e07 Cache more things
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-12 23:45:15 +01:00