morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
353 stars 156 forks source link

gitlab import notes #695

Closed PierrickKoch closed 7 years ago

PierrickKoch commented 8 years ago

gitlab import

few notes on importing morse repository to GtiLab (including continuous integration with gitlab-ci)

in order to fix git issue:

remote: error: object : zeroPaddedFilemode: contains zero-padded file modes

(you can check in morse repo using git fsck)

mkdir /tmp/morse-fastimport
cd /tmp/morse-fastimport
git init
cd /tmp
git clone https://github.com/morse-simulator/morse.git
cd morse
git fast-export --all | (cd /tmp/morse-fastimport && git fast-import )
cd /tmp/morse-fastimport
# compress repo from 1.4 GB to 500 MB
# warn: this will take lot of memory, cpu and time
# prune is optionnal, save few MB
git gc --prune=all --aggressive
# git remote add origin git@gitlab.com:morse/morse.git
# git push origin master -u

gitlab-ci runs debian jessie, no need to run sudo:

https://gitlab.com/pierriko/morse/commit/42259ba7c0995dbd86f2672b2126102ff0bab69e https://gitlab.com/pierriko/morse/builds/689216 https://gitlab.com/pierriko/morse