Skip to content

Commit cf06ea9

Browse files
author
Itxaka Serrano
committed
try to substitute the gitlal-shell dir, use sudo to copy the gitlab service file
1 parent 1fd14ef commit cf06ea9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ before_install:
1515
- sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python-docutils pkg-config cmake git-core
1616
- psql -c 'CREATE USER git CREATEDB;' -U postgres
1717
- psql -c 'CREATE DATABASE gitlabhq_production OWNER git;' -U postgres
18+
- rvm use 2.1.1
1819
- scripts/prepare_test_env.sh
1920
- scripts/install_gitlab.sh
2021
# command to install dependencies

scripts/install_gitlab.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cd
44
git clone --depth=1 https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-2-stable gitlab
55
cd /home/travis/gitlab
66
sh -c "cat config/gitlab.yml.example | sed 's/port: 80/port: 8080/g' > config/gitlab.yml"
7+
sh -c "sed -i s_/home/git/gitlab-shell/_/home/travis/gitlab-shell/_g config/gitlab.yml"
78
chmod -R u+rwX log/
89
chmod -R u+rwX tmp/
910
mkdir /home/travis/gitlab-satellites
@@ -22,8 +23,8 @@ bundle install -j4 --deployment --without development test mysql aws
2223
# install gitlab shell
2324
bundle exec rake gitlab:shell:install[v1.9.7] REDIS_URL=redis://localhost:6379 RAILS_ENV=production
2425
echo "yes" |bundle exec rake gitlab:setup RAILS_ENV=production
25-
cp lib/support/init.d/gitlab /etc/init.d/gitlab
26-
update-rc.d gitlab defaults 21
26+
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
27+
sudo update-rc.d gitlab defaults 21
2728
bundle exec rake gitlab:env:info RAILS_ENV=production
2829
bundle exec rake assets:precompile RAILS_ENV=production
2930
service gitlab restart

scripts/prepare_test_env.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22
# install ruby
3-
rvm use 2.1.1
43
bundle --version

0 commit comments

Comments
 (0)