-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
45 lines (41 loc) · 1.64 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
language: node_js
node_js:
- 0.10
- 0.12
- 4.0
- 4.2
env:
- NEO4J_AUTH="none"
services:
- mysql
- postgresql
- redis-server
- mongodb
before_script:
- 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 -qq
- 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
- wget -qO - https://www.arangodb.com/repositories/arangodb2/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
- echo "deb https://www.arangodb.com/repositories/arangodb2/xUbuntu_$(lsb_release -rs)/ /" | sudo tee /etc/apt/sources.list.d/arangodb.list
- sudo apt-get update -qq
- sudo apt-get install arangodb -y
# start neo4j
- which neo4j && sudo neo4j start