Last active
August 29, 2015 14:27
-
-
Save joseustra/9709db9292050bd5bb0c to your computer and use it in GitHub Desktop.
gitlab-runner register
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before_script: | |
| - export MYSQL_ROOT_PASSWORD=123456 | |
| - source ci/prepare | |
| - go get github.com/tools/godep | |
| - go get github.com/stretchr/testify/assert | |
| - godep restore | |
| test: | |
| tags: | |
| - golang | |
| script: | |
| - go test ./... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -d --name gitlab-runner --restart always \ | |
| -v /var/run/docker.sock:/var/run/docker.sock \ | |
| -v /srv/gitlab-runner/config:/etc/gitlab-runner \ | |
| gitlab/gitlab-runner:latest | |
| I selected mysql as a service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bootstrap golang runner | |
| go-wrapper true &>/dev/null || true | |
| # Installing dependencies | |
| apt-get update >/dev/null | |
| apt-get install -y ruby ruby-dev python-pip dpkg-sig createrepo rpm locales >/dev/null | |
| # Set default locale for the environment | |
| echo "en_US UTF-8" > /etc/locale.gen | |
| locale-gen en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| export LANGUAGE=en_US:en | |
| export LC_ALL=en_US.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment