This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
forked from ARMmbed/yotta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_init.sh
executable file
·17 lines (15 loc) · 2.69 KB
/
.travis_init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
mkdir -p ~/.ssh
chmod 700 ~/.ssh
# don't check host keys - the tests need to access repos over ssh, which would
# otherwise stall asking about the server's fingerprint
echo -e 'Host bitbucket.org\n\tStrictHostKeyChecking no\n' >> ~/.ssh/config
# We also need an account to access things on bitbucket (our test packages), so
# we have a dummy account with this public private key:
echo -e "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA/C5iyF6B2eM0U5vmpw3qu6r1sGrWII5mk9j5dK4xnUWfPqzF\n6TyVs3C69oT6VORI0z5fMpFYET8hNbaEMCg23S9LaYn420lrDmuEmrMmEod34E7w\nHr65tsJHaUtedIoua9vLBzLiq2k31uteF7EMIp8Ln3zlaPpaGj5Y9lj8fGATm9fS\nBvUR0msKKNIO4yU+xqIzPkKDA4h+fuBXL1J/5DUp96A22CD9xN8VfWJSEJXWAKas\nl6EH+5Rbyp8uFcJT3E2LhRnNwEJWkNpDXiOva7m2PsaIdN4x/DLLjG+A6minyVeS\nS2vBOFScChEhGn/x4pAz0kXF+wIYEyIeY76CdQIDAQABAoIBAQDkjhHfcbAUTxSM\ntl5ch4N4JSDZjGqXRRh45QxpkLrMxF3oiuQwWEWBRSld5fWP3PqX4g6boRkFQIcT\nzGCP2NKosoWRmIegDzFk91NOdhGKd5bRCBoec1OT7Q6VwsZPrzEVdjXTR24iVpFS\nSy2TIVZTRnxdRvAQrd3drSYp10q2WPy4vvzxo7TLCg29888n8YIGb6ttvW3ytyB2\nuhjGk7uCNpTDDPNLhJAXTiX2JeBq6WYHM4YbRZe0tCE/3hEQG7nM0Kx8H+Km3sN1\ngSTEoMGnnFDjIEGarj0rZYB6b8SxvEZ52m2PteeI9myn5StLYBLVpZ/CMTbmq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E1toQwKDbdL0tpifjbSWsOa4SasyYSh3fgTvAevrm2wkdpS150ii5r28sHMuKraTfW614XsQwinwuffOVo+loaPlj2WPx8YBOb19IG9RHSawoo0g7jJT7GojM+QoMDiH5+4FcvUn/kNSn3oDbYIP3E3xV9YlIQldYApqyXoQf7lFvKny4VwlPcTYuFGc3AQlaQ2kNeI69rubY+xoh03jH8MsuMb4DqaKfJV5JLa8E4VJwKESEaf/HikDPSRcX7AhgTIh5jvoJ1 [email protected]" > ~/.ssh/id_rsa.pub
# make sure the keys have the right permissions
chmod 600 ~/.ssh/*
# set git settings
git config --global user.email "[email protected]"
git config --global user.name "Yotta Travis-CI Bot"