forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (66 loc) · 2.55 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: ruby
rvm:
- 2.3.1
before_install:
- sudo echo host localhost >> ~/.ssh/config
- sudo echo user git >> ~/.ssh/config
- sudo echo identityfile ~/git >> ~/.ssh/config
- sudo echo port 22 >> ~/.ssh/config
- sudo echo NoHostAuthenticationForLocalhost yes >> ~/.ssh/config
- sudo apt-get update -qq
- sudo apt-get install -y sshpass
- ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
- sudo adduser -disabled-password --gecos "" git
- echo "git:password" | sudo chpasswd
- sudo adduser git sudo
- sudo cp ~/.ssh/id_rsa.pub /home/git/git.pub
- sudo cp ~/.ssh/id_rsa.pub /home/git/vagrant.pub
- sudo cp ~/.ssh/id_rsa /home/git/git
- sudo chmod 777 /home/git/git.pub
- sudo chmod 777 /home/git/vagrant.pub
- sudo chmod 777 /home/git/git
- cp ~/.ssh/id_rsa ~/git
- cp ~/.ssh/id_rsa.pub ~/git.pub
- sudo -H -u git bash -c 'git clone git://github.com/sitaramc/gitolite /home/git/gitolite'
- sudo -H -u git bash -c 'mkdir /home/git/bin'
- sudo -H -u git bash -c '/home/git/gitolite/install -ln'
- sudo -H -u git bash -c 'export PATH="~/bin:$PATH"'
- sudo -H -u git bash -c '/home/git/bin/gitolite setup -pk /home/git/git.pub'
- eval $(ssh-agent -s)
- ssh-add ~/git
- ssh-add /home/vagrant/.ssh/id_rsa
- ssh git@localhost
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no git@localhost
- sudo apt-get install -y cmake libssh2* libgit2* ruby1.9.1-dev
- git config --global user.email "travis@travis.com"
- git config --global user.name "Travis CI"
install:
- travis_wait bundle install --path=~/.bundle --jobs=3 --retry=3 --without development production console
- sudo apt-get install -y libaprutil1-dev swig
- wget http://apachemirror.ovidiudan.com/subversion/subversion-1.9.4.tar.gz
- tar xzf subversion-1.9.4.tar.gz
- wget http://www.sqlite.org/sqlite-amalgamation-3071501.zip
- unzip sqlite-amalgamation-3071501.zip
- mv sqlite-amalgamation-3071501 subversion-1.9.4/sqlite-amalgamation
- cd subversion-1.9.4
- LDFLAGS="-L/home/travis/.rvm/rubies/ruby-2.3.1/lib/" ./configure --prefix=/home/travis/.rvm/rubies/ruby-2.3.1/
- make
- make swig-rb
- make install
- make install-swig-rb
- cd ..
before_script:
- sudo rm -f /etc/localtime
- sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime
- cp config/database.yml.ci config/database.yml
- psql -c 'create database markus_test;' -U postgres
- bundle exec rake db:migrate RAILS_ENV=test
script:
- bundle exec rake test
- bundle exec rspec
notifications:
email: false
bundler_args: --retry 10
cache:
directories:
- ~/.bundle