Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cube-doctor
Commits
1c51b690ba39
Commit
9287082d
authored
Oct 13, 2021
by
Laurent Peuch
Browse files
ci: uses custom image cube-doctor-scheduled-jobs to reduce load
parent
b1b383cc1df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1c51b690
...
...
@@ -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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment