forked from biggora/caminte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (46 loc) · 1.95 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: node_js
node_js:
- 0.10
- 4.5
- 6.5
env:
- NEO4J_AUTH="none"
services:
- mysql
- postgresql
- redis-server
- mongodb
before_script:
- sudo apt-get update -o Acquire::http::No-Cache=True
- sudo apt-get install -y apt-transport-https
# configure mysql
- mysql -e "CREATE USER 'test'@'%' IDENTIFIED BY 'test';" -uroot
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
- mysql -e "GRANT ALL PRIVILEGES ON test . * TO 'test'@'%';" -uroot
- mysql -e "FLUSH PRIVILEGES;" -uroot
- sleep 2
# configure postgres
- psql -c "CREATE ROLE test LOGIN ENCRYPTED PASSWORD 'test' NOINHERIT VALID UNTIL 'infinity';" -U postgres
- psql -c "CREATE DATABASE test WITH ENCODING='UTF8' OWNER=test;" -U postgres
- sleep 2
# configure mongodb
- mongo test --eval 'db.addUser("test", "test");'
# add and configure rethinkdb
- curl http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
- echo "deb http://download.rethinkdb.com/apt $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/rethinkdb.list
- sudo apt-get update -q
- sudo apt-get install rethinkdb -y
- sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/default.conf
- sudo service rethinkdb restart
# add arangodb
#- sudo apt-get clean
- curl -O https://www.arangodb.com/repositories/arangodb2/xUbuntu_$(lsb_release -rs)/amd64/arangodb_2.8.7_amd64.deb
- sudo dpkg -i arangodb_2.8.7_amd64.deb
# - sudo service arangodb restart
# - sudo dpkg -i arangodb_2.8.7_amd64.deb
# - curl http://www.arangodb.com/repositories/arangodb2/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
# - echo "deb http://www.arangodb.com/repositories/arangodb2/xUbuntu_$(lsb_release -rs)/ /" | sudo tee /etc/apt/sources.list.d/arangodb.list
# - sudo apt-get update -q
# - sudo apt-get install arangodb=2.8.7 -y
# start neo4j
- which neo4j && sudo neo4j start