forked from aerospike/aerospike-client-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (48 loc) · 1.2 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
language: ruby
bundler_args: --without development
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- ruby-head
- rbx
# - jruby
# - jruby-head
env: CI="travis"
matrix:
allow_failures:
- rvm: ruby-head
- rvm: rbx
fast_finish: true
install:
- wget -O aerospike-server.tgz http://aerospike.com/download/server/latest/artifact/tgz
- tar xvzf aerospike-server.tgz
- cp -f .travis/aerospike.conf ./aerospike-server/share/etc
- cd aerospike-server
- mkdir instance1
- mkdir instance2
- ./bin/aerospike init --home instance1 --instance 1 --service-port 3000
- ./bin/aerospike init --home instance2 --instance 2 --service-port 3010
- cd instance1
- sudo ./bin/aerospike start
- cd ../..
- pwd
- sleep 5
# dump keep server log for debugging
- sudo tail -n 1000 aerospike-server/instance1/var/log/aerospike.log
- bundle install
script:
# run tests in single instance mode
- bundle exec rspec
# run tests in multiple instance mode
- cd aerospike-server/instance1
- sudo ./bin/aerospike restart
- cd ../instance2
- sudo ./bin/aerospike start
- cd ../..
# make sure the instances are up and clean
- sleep 5
- bundle exec rspec
# - rake install
# - .travis/proxy_check.sh