-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
30 lines (23 loc) · 1018 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: go
sudo: required
services:
- docker
before_install:
- docker pull gitlab/gitlab-ce
- docker run -d --name gitlab -p 80:80 gitlab/gitlab-ce
- go get -d ./...
- sleep 120 # GitLab is like a sloth
install: |
docker exec gitlab runuser -l gitlab-psql -c '/opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d gitlabhq_production -c "
INSERT INTO labels (title, color, template, description, description_html) VALUES ('"'"'feature'"'"', '"'"'#000000'"'"', true, '"'"'represents a feature'"'"', '"'"'represents a <b>feature</b>'"'"');
INSERT INTO labels (title, color, template, description, description_html) VALUES ('"'"'bug'"'"', '"'"'#ff0000'"'"', true, '"'"'represents a bug'"'"', '"'"'represents a <b>bug</b>'"'"');
UPDATE users SET authentication_token='"'"'secret'"'"' WHERE username='"'"'root'"'"';"'
script:
- GITLAB_URL="http://127.0.0.1" GITLAB_TOKEN="secret" go test -v ./gitlab
go:
- 1.7
- 1.8
- tip
matrix:
allow_failures:
- go: tip