-
Notifications
You must be signed in to change notification settings - Fork 80
/
.travis.yml
62 lines (57 loc) · 2.04 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
before_script:
- "travis_retry bin/rake neo4j:install[$NEO4J_VERSION] --trace"
- "bin/rake neo4j:config[development,7474] --trace"
- "if [ -f ./db/neo4j/development/conf/neo4j-wrapper.conf ]; then WRAPPER=-wrapper; fi"
- "echo 'dbms.memory.pagecache.size=600m' >> ./db/neo4j/development/conf/neo4j.conf"
- "echo 'dbms.memory.heap.max_size=600' >> ./db/neo4j/development/conf/neo4j$WRAPPER.conf"
- "echo 'dbms.memory.heap.initial_size=600' >> ./db/neo4j/development/conf/neo4j$WRAPPER.conf"
- "bin/rake neo4j:start --trace"
- "while [ $((curl localhost:7474/ > /dev/null 2>&1); echo $?) -ne 0 ]; do sleep 1; done"
script:
- "bundle exec rspec $RSPEC_OPTS"
language: ruby
cache: bundler
sudo: false
jdk: openjdk8
rvm:
- 2.4.5
- 2.1.10
- jruby-9.2.5.0
env:
global:
- JRUBY_OPTS="--debug -J-Xmx1024m -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF"
- NEO4J_URL="http://localhost:7474"
- NEO4J_BOLT_URL="bolt://localhost:7472"
matrix:
- NEO4J_VERSION=community-3.3.1
matrix:
include:
- script: "bundle exec rubocop"
rvm: 2.4.5
jdk:
before_script:
env: "RUBOCOP=true"
# Older versions of Neo4j with latest version of Ruby
- rvm: 2.4.5
env: NEO4J_VERSION=community-3.2.8
- rvm: 2.4.5
env: NEO4J_VERSION=community-3.1.7
- rvm: 2.4.5
env: NEO4J_VERSION=community-2.3.11
# Older versions of Neo4j with latest version of jRuby
- rvm: jruby-9.2.5.0
env: NEO4J_VERSION=community-3.2.8
- rvm: jruby-9.2.5.0
env: NEO4J_VERSION=community-3.1.7
- rvm: jruby-9.2.5.0
env: NEO4J_VERSION=community-2.3.11
# NEW_NEO4J_SESSIONS
- rvm: jruby-9.2.5.0
env: RSPEC_OPTS="--tag new_cypher_session" NEO4J_VERSION=community-2.3.11 NEW_NEO4J_SESSIONS=true
# Enterprise
- rvm: jruby-9.2.5.0
env: NEO4J_VERSION=enterprise-3.5.1
after_failure:
- cat ./db/neo4j/development/logs/neo4j.log
- cat ./db/neo4j/development/logs/debug.log
- cat ./db/neo4j/development/conf/neo4j.conf