forked from VirtualFlyBrain/VFB_neo4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 1.02 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
sudo: required
dist: trusty
before_install:
- docker run -d --name db -p 7474:7474 -p 7687:7687 --env=NEO4J_AUTH=none --env=NEO4J_dbms_memory_heap_maxSize=1G --volume=$TRAVIS_BUILD_DIR/src:/import virtualflybrain/docker-vfb-neo4j:enterprise
- docker run -d --name pdb -p 7475:7474 -p 7688:7687 --env=NEO4J_AUTH=none --env=NEO4J_CACHE_MEMORY=1G --env=NEO4J_HEAP_MEMORY=2560 --volume=$TRAVIS_BUILD_DIR/src:/import virtualflybrain/docker-vfb-neo4j-productiondb
- sleep 50s
services:
- docker
env:
- VN="uk.ac.ebi.vfb.neo4j"
language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
script:
- echo -e "travis_fold:start:db-log"
- curl -sSf -u neo4j:neo4j "http://localhost:7474/db/data/"
- docker logs db
- echo -e "travis_fold:end:db-log"
- echo -e "travis_fold:start:pdb-log"
- curl -sSf -u neo4j:neo4j "http://localhost:7475/db/data/"
- docker logs pdb
- echo -e "travis_fold:end:pdb-log"
- echo $VN
- cd src
- python -m $VN.test.KB_tools_test
- python -m $VN.test.neo_tools_tests