This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
40 lines (36 loc) · 1.61 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
dist: trusty
sudo: required
language: node_js
node_js:
- "6"
services:
- neo4j
- redis-server
before_script:
- npm install
- cp ./config/travis/app3_tst2_s1_wb_key.pem ~
- cp ./config/travis/app3_tst2_s1_wb_pub.pem ~
- cp ./config/travis/pki1_tst2_ca_pub.pem ~
- cp ./config/travis/data.tar ~
- sudo service neo4j stop
- sleep 20
- sudo rm /usr/local/neo4j-"${NEO4J_VERSION}"/certificates/neo4j.key
- sudo rm /usr/local/neo4j-"${NEO4J_VERSION}"/certificates/neo4j.cert
- sudo cp ./config/travis/app3_tst2_s2_db_key.pem /usr/local/neo4j-"${NEO4J_VERSION}"/certificates/neo4j.key
- sudo cp ./config/travis/app3_tst2_s2_db_pub.pem /usr/local/neo4j-"${NEO4J_VERSION}"/certificates/neo4j.cert
- sudo rm -rd /usr/local/neo4j-"${NEO4J_VERSION}"/data/databases
- (cd /usr/local/neo4j-"${NEO4J_VERSION}"/data && sudo tar xvf ~/data.tar --strip 1)
- sudo rm /usr/local/neo4j-"${NEO4J_VERSION}"/data/databases/graph.db/store_lock
- sudo chown -R travis:travis /usr/local/neo4j-"${NEO4J_VERSION}"/data
- sudo ls -al /usr/local/neo4j-"${NEO4J_VERSION}"/data
- echo 'dbms.allow_format_migration=true' | sudo tee --append /usr/local/neo4j-"${NEO4J_VERSION}"/conf/neo4j.conf
- sudo sed -i 's|dbms.security.auth_enabled=false|dbms.security.auth_enabled=true|g' /usr/local/neo4j-"${NEO4J_VERSION}"/conf/neo4j.conf
- cat /usr/local/neo4j-"${NEO4J_VERSION}"/conf/neo4j.conf
- sudo service neo4j start
- sleep 30
script:
- curl http://neo4j:"${DNB_TEST_PASS}"@localhost:7474/db/data/labels
- cat /usr/local/neo4j-"${NEO4J_VERSION}"/logs/neo4j.log
- swagger project start &
- sleep 20
- swagger project test