Closed PeterBowman closed 6 years ago
The main handicap is the private amor-api repo, which requires Travis to work with deploy keys. Here is the full procedure:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
.gem install travis
(you'll need Ruby).travis login --pro
.travis encrypt-file /path/to/id_rsa -r roboticslab-uc3m/amor-main
. This will generate a id_rsa.enc
file in your current working directory.travis env set DEPLOY_KEY_AMOR_API `base64 -i ./id_rsa.enc | tr -d '\n'` --private -r roboticslab-uc3m/amor-main
.DEPLOY_KEY_AMOR_API
, encrypted_xxxxxxxxxxxx_key
and encrypted_xxxxxxxxxxxx_iv
)..travis.yml
, paste this into the before_install
section:
- mkdir -p ~/.ssh
- echo $DEPLOY_KEY_AMOR_API | base64 --decode | openssl aes-256-cbc -K $encrypted_xxxxxxxxxxxx_key -iv $encrypted_xxxxxxxxxxxx_iv -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- echo "Host *" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
- echo " CheckHostIP no" >> ~/.ssh/config
- echo " PasswordAuthentication no" >> ~/.ssh/config
- echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
(rename DEPLOY_KEY_AMOR_API
, encrypted_xxxxxxxxxxxx_key
and encrypted_xxxxxxxxxxxx_iv
according to the keys generated and uploaded into your Travis repository settings)
git@github.com:
base address when cloning private repos.
cmake .. -DYCM_GIT_GITHUB_BASE_ADDRESS="git@github.com:"
.git clone git@github.com:roboticslab-uc3m/amor-api
.Useful links:
It's hard to believe, but... it really looks like repos which configure deploy keys in their Travis settings lack CMake color output in CI builds. I want my colors back!
Examples: