forked from askomics/flaskomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (38 loc) · 2.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
36
37
38
39
matrix:
include:
- language: python
python:
- 3.6
services:
- docker
cache:
- pip
install:
- pip install -r requirements.txt
- pipenv install --dev
- python setup.py install
before_script:
- docker pull redis:4.0
- docker pull askomics/virtuoso:7.2.5.1
- docker pull bgruening/galaxy-stable:19.01
- docker pull xgaia/corese:latest
- docker pull xgaia/isql-api:2.1.1
- sudo docker run -d --name virtuoso -p 8891:8890 -p 1112:1111 -e DBA_PASSWORD=dba -e SPARQL_UPDATE=true -e DEFAULT_GRAPH=http://localhost:8891/DAV -t askomics/virtuoso:7.2.5.1 /bin/sh -c "netstat -nr | grep '^0\.0\.0\.0' | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' | grep -v '^0\.0\.0\.0' | sed 's/$/ askomics-host/' >> /etc/hosts && /virtuoso/virtuoso.sh"
- sleep 1m
- sudo docker run -d --name redis -p 6380:6379 -t redis:4.0
- sudo docker run -d --name galaxy -p 8081:80 -t bgruening/galaxy-stable:19.01
- sudo docker run -d --name corese -p 8082:8080 -t xgaia/corese:latest /bin/sh -c "netstat -nr | grep '^0\.0\.0\.0' | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' | grep -v '^0\.0\.0\.0' | sed 's/$/ askomics-host/' >> /etc/hosts && /corese/start.sh"
- sudo docker run -d --name isql-api -p 5051:5050 -e VIRTUOSO_HOST=askomics-host -e VIRTUOSO_ISQL_PORT=1112 -t xgaia/isql-api:2.1.1 /bin/sh -c "netstat -nr | grep '^0\.0\.0\.0' | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' | grep -v '^0\.0\.0\.0' | sed 's/$/ askomics-host/' >> /etc/hosts && sh /isqlapi/docker-run.sh"
- sleep 1m
script:
- flake8 askomics tests --ignore=E501,W504
- pytest --cov=. -vv
after_success:
coveralls
- language: node_js
node_js:
- 8
install:
- npm install
script:
- ./node_modules/.bin/eslint --config .eslintrc.yml "askomics/react/src/**"