This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
55 lines (55 loc) · 1.97 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
branches:
only:
- master
- staging
- trying
language: python
sudo: true
dist: buster
services:
- redis-server
- postgresql
python:
- '3.8'
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
env:
global:
- NODE_ENV=production
- PIP_DISABLE_PIP_VERSION_CHECK=on
- JEST_JUNIT_OUTPUT_DIR=.artifacts
- JEST_JUNIT_OUTPUT_NAME=jest.junit.xml
- JEST_JUNIT_INCLUDE_CONSOLE_OUTPUT=true
- JEST_JUNIT_ADD_FILE_ATTRIBUTE=true
install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/1.1.2/get-poetry.py | python
- curl -sSLf https://get.volta.sh | bash
- PATH=$HOME/.poetry/bin:$PATH NODE_ENV= make
script:
- git --version
- PATH=$HOME/.poetry/bin:$PATH PATH=node_modules/.bin:$PATH pre-commit run -a -v
- PATH=$HOME/.poetry/bin:$PATH poetry run py.test tests -v --cov . --cov-report="xml:.artifacts/coverage.xml" --junit-xml=".artifacts/pytest.junit.xml"
- node_modules/.bin/webpack --json > .artifacts/webpack-stats.json
- JEST_JUNIT_OUTPUT_DIR=.artifacts JEST_JUNIT_OUTPUT_NAME=jest.junit.xml yarn test --ci --reporters=default --reporters=jest-junit
after_script:
- npm install -g @zeus-ci/cli
- $(npm bin -g)/zeus upload -t "application/x-junit+xml" .artifacts/*.junit.xml
- $(npm bin -g)/zeus upload -t "application/x-cobertura+xml" .artifacts/coverage.xml
- $(npm bin -g)/zeus upload -t "application/x-cobertura+xml" .artifacts/coverage/cobertura-coverage.xml
- $(npm bin -g)/zeus upload -t "application/x-checkstyle+xml" .artifacts/*.checkstyle.xml
- $(npm bin -g)/zeus upload -t "text/x-pycodestyle" .artifacts/flake8.log
- $(npm bin -g)/zeus upload -t "application/webpack-stats+json" .artifacts/webpack-stats.json
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/c8e250c8-81ee-11e7-bf7a-0a580a280480/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always
email: false