forked from iml130/firos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
58 lines (43 loc) · 1.17 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
46
47
48
49
50
51
52
53
54
55
56
57
58
sudo: required
stages:
- name: test
- name: deploy
if: (type NOT IN (pull_request)) AND branch IN (master)
branches:
only:
- master
jobs:
include:
- stage: test
name: "Unit Tests"
language: python
python: "2.7"
cache: pip
before_install:
- git submodule update --init --recursive
install:
- pip install -r requirements.txt
script:
- export PYTHONPATH="${PYTHONPATH}:${TRAVIS_BUILD_DIR}/firos/include/FiwareObjectConverter"
- cd firos && python -m unittest discover
- stage: test
name: "Documentation Tests"
language: node_js
node_js: 10
install:
- npm install
script:
- npm run lint:md
- npm run lint:text
- stage: deploy
name: "Docker build and push"
language: ruby
on:
branch: master
services:
- docker
script:
- docker build -f ./docker/Dockerfile --tag fhgiml130/firos:latest .
- docker-compose -f ./docker/docker-compose.yml build
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push fhgiml130/firos:latest