This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (90 loc) · 2.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
jobs:
include:
- stage: test
name: "Back-office's backend (API & Docker)"
language: python
python:
- '3.4'
cache:
pip: true
env:
- DEFAULT_INTERFACE=eth0 # needed to setup django context
before_script:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- docker pull coaxisasp/coaxisopt_daemon:latest
- cd ./daemon/
- make -f help-me.mk build
script:
- cd ../backend/
- make install test-api DEFAULT_INTERFACE=$DEFAULT_INTERFACE
- stage: test
name: "Back-office's front-end (Vue.js)"
language: node_js
node_js:
- '4.8'
cache:
yarn: true
before_install:
- cd frontend/
install:
- yarn install --frozen-lockfile
script:
- yarn test
- stage: test
name: "Front-office's MAST (mast-utils)"
language: bash
before_script:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- make dev
script:
- make test-mast
- stage: test
name: "Front-office's backend (API & network)"
language: python
python:
- '3.4'
cache:
pip: true
before_script:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
script:
- make test-frontoffice-backend
- stage: test
name: "Front-office's front-end (Vue.js)"
language: node_js
node_js:
- '8.12.0'
cache:
yarn: true
install:
- pushd ./daemon/frontend/
- yarn install --frozen-lockfile
script:
- popd
- make test-frontoffice-frontend
- stage: test
name: "Front-office's End to end"
language: node_js
node_js:
- '10'
cache:
yarn: true
directories:
- ~/.cache
install:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- pushd ./daemon/frontend/
- yarn install --frozen-lockfile
script:
- popd
- make test-frontoffice-end-to-end
- stage: release
language: bash
if: tag IS present
before_script:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
script:
- make release
notifications:
email: false