Skip to content

Commit 4afe826

Browse files
committed
Update travis since GitLab image doesn't have 'sudo' anymore
1 parent d035573 commit 4afe826

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ before_install:
1212
- sleep 120 # GitLab is like a sloth
1313

1414
install: |
15-
docker exec gitlab sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d gitlabhq_production -c "
16-
INSERT INTO labels (title, color, template) VALUES ('feature', '#000000', true);
17-
INSERT INTO labels (title, color, template) VALUES ('bug', '#ff0000', true);
18-
UPDATE users SET authentication_token='secret' WHERE username='root';"
15+
docker exec gitlab runuser -l gitlab-psql -c '/opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d gitlabhq_production -c "
16+
INSERT INTO labels (title, color, template, description, description_html) VALUES ('"'"'feature'"'"', '"'"'#000000'"'"', true, '"'"'represents a feature'"'"', '"'"'represents a <b>feature</b>'"'"');
17+
INSERT INTO labels (title, color, template, description, description_html) VALUES ('"'"'bug'"'"', '"'"'#ff0000'"'"', true, '"'"'represents a bug'"'"', '"'"'represents a <b>bug</b>'"'"');
18+
UPDATE users SET authentication_token='"'"'secret'"'"' WHERE username='"'"'root'"'"';"'
1919
2020
script:
21-
- GITLAB_URL="http://127.0.0.1" GITLAB_TOKEN="secret" GO15VENDOREXPERIMENT="1" go test -v ./gitlab
21+
- GITLAB_URL="http://127.0.0.1" GITLAB_TOKEN="secret" go test -v ./gitlab
2222

2323
go:
24-
- 1.5
2524
- 1.6
25+
- 1.7
2626
- tip
2727

2828
matrix:

0 commit comments

Comments
 (0)