forked from superdesk/newsroom-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (49 loc) · 1.44 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
language: python
python: 3.6
dist: bionic
services:
- docker
addons:
chrome: stable
cache:
- pip
- npm
- yarn
before_install:
- |
if [ "$SKIP_SERVER_INSTALL" != "true" ]; then
docker-compose -f .travis-docker-compose.yml up -d
fi
install:
- |
if [ "$SKIP_SERVER_REQUIREMENTS_INSTALL" != "true" ]; then
pip install -r requirements.txt
fi
- |
if [ "$SKIP_SERVER_REQUIREMENTS_INSTALL" != "true" ]; then
pip install -r dev-requirements.txt
fi
- |
if [ "$SKIP_CLIENT_REQUIREMENTS_INSTALL" != "true" ]; then
yarn install
fi
jobs:
include:
- script: flake8
name: "flake8"
env: SKIP_SERVER_INSTALL=true SKIP_CLIENT_REQUIREMENTS_INSTALL=true
- script: pytest --disable-pytest-warnings --cov=newsroom
name: "pytest"
env: SKIP_CLIENT_REQUIREMENTS_INSTALL=true
- script: behave --format progress2 --logging-level=ERROR
name: "behave"
env: SKIP_CLIENT_REQUIREMENTS_INSTALL=true
- script: npm run lint
name: "lint"
env: SKIP_SERVER_INSTALL=true SKIP_SERVER_REQUIREMENTS_INSTALL=true
- script: npm run test
name: "karma"
env: SKIP_SERVER_INSTALL=true SKIP_SERVER_REQUIREMENTS_INSTALL=true
- script: npm run build
name: "build"
env: SKIP_SERVER_INSTALL=true SKIP_SERVER_REQUIREMENTS_INSTALL=true