Commit 9287082d authored by Laurent Peuch's avatar Laurent Peuch
Browse files

ci: uses custom image cube-doctor-scheduled-jobs to reduce load

parent b1b383cc1df0
......@@ -29,23 +29,14 @@ py3:
- tox -e py3
auto-mr:
image: debian:buster
image: ${CI_REGISTRY}/cubicweb/dockerfiles/cube-doctor-scheduled-jobs
only:
variables:
- $AUTO_MR
before_script:
- apt-get update
- apt-get install python-pip python3-pip mercurial -y
- python2 -m pip install hg-evolve
- pip3 install -r requirements.txt
- pip3 install -e .
- echo -e "[extensions]\nevolve =\ntopic =" >> ~/.hgrc
- echo -e "[ui]" >> ~/.hgrc
- echo -e "username = Cube Doctor <cube-doctor@logilab.fr>" >> ~/.hgrc
- echo -e "[auth]" >> ~/.hgrc
- echo -e "forge.prefix = https://forge.extranet.logilab.fr" >> ~/.hgrc
- echo -e "forge.username = token-cube-doctor" >> ~/.hgrc
- echo -e "forge.password = $GITLAB_TOKEN" >> ~/.hgrc
- sed -i "s/TO_REPLACE_GITLAB_TOKEN/$GITLAB_TOKEN/" ~/.hgrc
script:
- cube-doctor rebase-all-my-mrs -a
- cube-doctor auto-mr -m
......@@ -71,17 +62,8 @@ update-flake8-ok-files:
- $BASH_SCRIPTS
- $UPDATE_FLAKE8_OK_FILES
before_script:
- apt-get update
- apt-get install python-pip python3-pip mercurial -y
- python2 -m pip install hg-evolve
- pip3 install -r requirements.txt
- pip3 install -e .
- echo -e "[extensions]\nevolve =\ntopic =\nshelve =" >> ~/.hgrc
- echo -e "[ui]" >> ~/.hgrc
- echo -e "username = Laurent Peuch <cortex@worlddomination.be>" >> ~/.hgrc
- echo -e "[auth]" >> ~/.hgrc
- echo -e "forge.prefix = https://forge.extranet.logilab.fr" >> ~/.hgrc
- echo -e "forge.username = lpeuch" >> ~/.hgrc
- echo -e "forge.password = $HEPTAPOD_PASSWORD" >> ~/.hgrc
- sed -i "s/TO_REPLACE_GITLAB_TOKEN/$GITLAB_TOKEN/" ~/.hgrc
script:
- "cube-doctor run-script -b update-flake8-ok -c 'chore: update flake8-ok-files.txt' -s scripts/update-flake8-ok-files.sh -p cubicweb -am"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment