-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
31 lines (24 loc) · 913 Bytes
/
.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
dist: xenial
language: python
python:
- "3.7"
before_install:
- DATA_MODEL_NAME=`echo $TRAVIS_REPO_SLUG | awk -F'.' '{print $2}'`
- echo $DATA_MODEL_NAME
install:
- npm install -g ajv-cli
- cd .. && mkdir integration && cd integration
- git clone https://github.com/smart-data-models/tools
- cd tools/validator && pip3 install -r requirements.txt
- cd $TRAVIS_BUILD_DIR/../integration
- git clone --recurse-submodules https://github.com/smart-data-models/dataModels
- cd dataModels/specs/$DATA_MODEL_NAME
- rm -Rf *
- cd $TRAVIS_BUILD_DIR/ && cp -R * ../integration/dataModels/specs/$DATA_MODEL_NAME/
- docker run --name mongodb -d mongo:3.6
- docker run -d --name orion1 --link mongodb:mongodb -p 1026:1026 fiware/orion -dbhost mongodb
script:
- python3 ../integration/tools/validator/main.py ../integration/dataModels/ --noLD
notifications:
on_success: change
on_failure: always