forked from superdesk/superdesk-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 815 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
32
33
34
35
36
37
38
39
40
41
42
43
language: python
python: 3.6
dist: bionic
env:
global:
- TRAVIS_NODE_VERSION="10"
services:
- docker
addons:
chrome: stable
cache:
- pip
- npm
before_install:
- |
if [ "$CLIENT" == "true" ]; then
nvm install 10
npm install
fi
- |
if [ "$SERVER" == "true" ]; then
docker-compose -f .travis-docker-compose.yml up -d
cd server && pip install -r requirements.txt && cd ..
chmod a+x server/scripts/install-highcharts-export-server.sh
pip install -e .
cd server && python3 -u -m analytics.reports.highcharts_server &
fi
jobs:
include:
- name: "server"
env: SERVER=true
script: make testpy
- name: "client"
env: CLIENT=true
script: make testjs