-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 1.29 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
language: python
install:
- pip install tox
env:
- TOXENV=pep8
- TOXENV=yamllint
- TOXENV=py27
script:
- tox -e ${TOXENV}
matrix:
include:
- python: "3.5"
env: TOXENV=py35
- python: "2.7"
install:
- pip install tox
- pip install coveralls
env: TOXENV=cover
after_success: coveralls
- language: node_js
node_js: "4.2.6"
env:
- PYTHONPATH=/home/travis/build/seecloud/availability
- AVAILABILITY_CONF=/home/travis/build/seecloud/availability/tests/ci/api/config.json
services:
- docker
install:
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.tar.gz -O - | tar xz
- ./elasticsearch-5.1.1/bin/elasticsearch -d
- docker build -t availability .
- docker run -d -p 127.0.0.1:5000:5000 --net=host -e "AVAILABILITY_CONF=/app/tests/ci/api/config.json" availability /app/entrypoint-api.sh
- git clone http://github.com/cybertk/abao && cd abao && git checkout 0.5.0
- npm install
- cp ../tests/ci/api/abao_hooks.js hooks.js
- pip install -r ../requirements.txt
- python ../tests/ci/api/populate_elastic.py
script:
- ./bin/abao ../raml/v1/api.raml --server http://127.0.0.1:5000 --hookfiles hooks.js