Commit Graph

59 Commits

Author SHA1 Message Date
Paul Marillonnet 3db301705b CI: let (now more powerful) jenkins run more concurrent threads (#84578)
gitea/authentic/pipeline/head This commit looks good Details
2023-12-11 16:55:33 +01:00
Frédéric Péters 26b0d84fac ci: build deb package for bookworm (#78968)
gitea/authentic/pipeline/head This commit looks good Details
2023-08-12 12:41:17 +02:00
Agate 30997475f3 Prepare Jenkinsfile for Gitea migration (#74572)
gitea/authentic/pipeline/head Something is wrong with the build of this commit Details
2023-02-20 14:54:20 +01:00
Frédéric Péters 992bf52c4d ci: only build package for bullseye (#72729) 2022-12-22 17:22:31 +01:00
Benjamin Dauvergne 210f6bdf01 misc: adapt to tox 4 and simplify Jenkinsfile (#72175) 2022-12-13 15:12:50 +01:00
Paul Marillonnet 29893d530a ci: limit tox version used while running tests (#72162) 2022-12-08 10:15:31 +01:00
Valentin Deniaud 1516c4d2e1 tests: move test_rbac to main tests (#58696) 2022-10-05 10:35:28 +02:00
Agate d5f16e620d ci: removed unnecessary slow marker (#67106) 2022-07-07 10:48:44 +02:00
Agate f695aba659 ci: speed up CI by using pytest-xdist (#42144) 2022-07-06 22:32:11 +02:00
Paul Marillonnet e89d757e35 jenkins: adapt jenkinsfile scripts to env changes in tox.ini (#66488) 2022-06-29 17:02:02 +02:00
Benjamin Dauvergne 50c473d98d auth_oidc: adapt to be compatible with jwcrypto<1 (#66438) 2022-06-24 13:25:48 +02:00
Paul Marillonnet d70995550f jenkins: adapt to unit test files changes (#66042) 2022-06-21 14:47:18 +02:00
Paul Marillonnet 243531b317 Jenkinsfile: run nightly build with django3.2 too (#64305) 2022-05-13 09:53:31 +02:00
Benjamin Dauvergne 34d4b476b1 Jenkinsfile: notify failed builds through jabber 2022-01-30 15:52:32 +01:00
Benjamin Dauvergne 2ec1984adc Jenkinsfile: run nightly test using groovy script
Publishing of coverage must run before packaging to prevent breaking the
build when packaging is restarting; but whenTriggeredBy cannot be used
inside a unique stage for two list of steps, a groovy script is
necessary to get all steps in the same stage.
2022-01-28 17:04:38 +01:00
Benjamin Dauvergne b9845dbfff Jenkinsfile: publish test results only one time (#60129) 2022-01-26 08:41:17 +01:00
Benjamin Dauvergne 549515cb86 Jenkinsfile: always publish test results (#60129) 2022-01-24 18:18:47 +01:00
Frédéric Péters 68febb3b3b jenkins: use python3 to get a port for postgresql (#60467) 2022-01-10 17:32:05 +01:00
Paul Marillonnet 31fa1dbf46 jenkins: run drf3.12 env on main branch nightly build (#59601) 2021-12-20 15:13:47 +01:00
Frédéric Péters 33cb311a0c jenkins: build packages for buster & bullseye 2021-12-12 11:22:42 +01:00
Benjamin Dauvergne d75891ebdb Jenkinsfile: always send notification mail (#59465) 2021-12-08 16:22:45 +01:00
Benjamin Dauvergne ff8749d158 Jenkinsfile: add stage to publish coverage and unit test results (#56657) 2021-09-16 19:56:22 +02:00
Benjamin Dauvergne 10e39e0c60 Jenkinsfile: factorize reporting as a final step (#56263)
It resolves two problems :
* pylint reporting failed if called a second time,
* mergeJunitResults delete junit files on each run and produce a
  junit.xml file, so the second call to it would lose the result of the
  first test run.

There is no problem with coverage as the coverage file is incrementally
updated by each pytest run, I moved it to the end of the Jenkinsfile
anyway for coherency.
2021-08-20 11:28:45 +02:00
Benjamin Dauvergne f0d3227fe8 Jenkinsfile: run slow authentic tests at night (#56263)
Those test were not run by `tox -e rbac-py3-dj22`.

Also to prevent running again the tests of the main step
pytest_runtest_setup() is modified to skip fast tests when slow tests
are run.
2021-08-20 11:28:45 +02:00
Benjamin Dauvergne 85c5324ea6 Jenkinsfile: keep using the existing venv (#56263)
As calling virtualenv two times on the same directory failed.
2021-08-20 11:28:45 +02:00
Benjamin Dauvergne c3f39b4637 ci: make target for check-migrations / simplify Jenkinsfile and default targets
tox.ini:
* check-migrations is now in its own target
* getlasso.sh is removed as python2 is not supported anymore
* code-style/check-migrations/pylint are run after tests to not delay
  reporting of test failures.
Jenkinsfile:
* regular test run use the default target list from tox.ini
* on time trigger, only the rbac target is run
2021-08-06 16:27:00 +02:00
Benjamin Dauvergne 4650f3fcb0 tox.ini: do not run environments with Django 1.11 2021-07-02 08:56:07 +02:00
Valentin Deniaud 3dc618a571 add black configuration (#52457) 2021-03-30 11:54:28 +02:00
Benjamin Dauvergne 06461f1be0 Jenkinsfile: test with django 2.2 on regular runs 2021-02-18 11:34:38 +01:00
Frédéric Péters a6eb71ac63 build: update to use origin/main 2020-12-26 15:21:15 +01:00
Emmanuel Cazenave 52d0d79506 jenkins: make tox verbose 2020-12-08 16:36:12 +01:00
Frédéric Péters 5f7ae0e000 jenkins: create parent directory if necessary 2020-10-12 10:05:18 +02:00
Benjamin Dauvergne 9d9e34ee6a ci: add a --slow options to also run slow tests (#46988) 2020-10-01 11:50:38 +02:00
Benjamin Dauvergne 6d0aa4dbbc ci: choose launched tests depending on context (#47048)
* locally : only authentic on the production environment
* on jenkins : django-rbac and authentic on the production environment
* on jenkins at night : everything we can, notably future environment
  (django 2.2)
2020-09-25 18:34:47 +02:00
Benjamin Dauvergne 4d4abc85b0 Jenkinsfile: use python3-venv 2020-08-31 11:04:14 +02:00
Benjamin Dauvergne f55332bbe7 Jenkinsfile: use .take() instead of .substr() 2020-08-22 00:44:44 +02:00
Benjamin Dauvergne 384eb04f49 Jenkinsfile: do not strip BUILD_NUMBER from BUILD_TAG 2020-08-21 15:50:49 +02:00
Paul Marillonnet a66093a5dc jenkins: shorten temporary test dir name (#45637) 2020-08-14 11:01:06 +02:00
Benjamin Dauvergne 988bca90f1 Jenkinsfile: add pylint to normal run 2020-07-13 18:21:20 +02:00
Benjamin Dauvergne 1480ed1ec0 Jenkinsfile: run all environments only with the timer trigger (#45070) 2020-07-13 16:02:23 +02:00
Benjamin Dauvergne df5969cc63 Jenkinsfile: do not build hotfix only for stretch 2020-07-12 21:45:29 +02:00
Benjamin Dauvergne 5b550185d2 Jenkinsfile: remove constraint on virtualenv and importlib-resources 2020-07-07 16:37:53 +02:00
Paul Marillonnet df3e0e79de tox: add django 2.2 / DRF 3.4 / DRF 3.9 test venv (#41238) 2020-04-27 16:12:58 +02:00
Frédéric Péters 064906f513 jenkins: correct importlib-resources version number 2020-03-01 09:42:35 +01:00
Frédéric Péters dfb6a91dfd jenkins: limit importlib-resources to 1.0.2 2020-03-01 08:27:44 +01:00
Frédéric Péters d3d34eb36d jenkins: limit virtualenv to 20.0.5
gitea/authentic/pipeline/head Build started... Details
2020-02-28 11:18:39 +01:00
Benjamin Dauvergne f28ad239aa Jenkinsfile: use mergeJunitResults() (#38297) 2019-12-09 11:39:49 +01:00
Emmanuel Cazenave a61d2bb55d jenkins: use ci@enttrouvert.org for notification 2019-10-02 13:27:13 +02:00
Frédéric Péters a4339f1c41 jenkins: add support for hotfix releases (#34485) 2019-07-02 14:22:26 +02:00
Benjamin Dauvergne 9c3951ceeb Jenkinsfile: do not activate virtualenv (#32961)
It allows getlasso.sh to work inside tox.
2019-05-10 12:13:59 +02:00