Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
tinyarray
Commits
27be9904
Verified
Commit
27be9904
authored
Dec 24, 2019
by
Anton Akhmerov
Browse files
rely on gitlab's built-in mirroring instead of CI
parent
3ffa951e
Pipeline
#25910
passed with stages
in 6 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
27be9904
...
...
@@ -14,23 +14,6 @@ python3:
-
python3 setup.py build_ext -i
-
python3 test_tinyarray.py
mirror
:
only
:
-
branches@kwant/tinyarray
variables
:
REPOS
:
"
git@github.com:kwant-project/tinyarray.git
git@gitlab.com:kwant/tinyarray.git"
before_script
:
-
HOSTS=$(for REPO in $REPOS; do echo ${REPO%:*} | cut -d'@' -f2; done)
-
mkdir ~/.ssh && chmod 700 ~/.ssh
-
for HOST in $HOSTS; do ssh-keyscan $HOST >> ~/.ssh/known_hosts; done
-
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
after_script
:
-
rm -rf ~/.ssh
script
:
-
ORIGIN_URL=$(git config --get remote.origin.url)
-
cd $(mktemp -d); git clone --bare $ORIGIN_URL .
-
for REPO in $REPOS; do git push --mirror $REPO; done
create conda dev package
:
image
:
condaforge/linux-anvil
stage
:
deploy
...
...
Write
Preview
Supports
Markdown
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