-
Notifications
You must be signed in to change notification settings - Fork 275
/
Copy path.travis.yml
84 lines (81 loc) · 2.71 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
language: python
sudo: false
cache:
yarn: true
directories:
- $HOME/.cache/pip
- node_modules
before_install:
- python .github/check_version.py
- sudo rm -f /etc/boto.cfg
install: false
script: false
# Please read about YAML Anchors & Aliases: https://blog.daemonl.com/2016/02/yaml.html
aliases:
# There's no support for concatenation so we must do this
- &node_version '10.16.0'
- &nvm_install nvm install v10.16.0
- &install_yarn_bin >-
curl -o- -L https://yarnpkg.com/install.sh | bash &&
export PATH="$HOME/.yarn/bin:$PATH"
- &backend_tests
install:
- pip install --upgrade pip
- pip install --upgrade tox
script:
- tox -v --recreate
- &dredd_tests
install:
- pip install --upgrade pip
- pip install dredd_hooks
- pip install 'PyYAML>=5.1'
- pip install six
- *nvm_install
- *install_yarn_bin
- yarn install --ignore-scripts
script:
- yarn test-api
after_failure:
- cat ./dredd/hook.log
jobs:
# fast_finish: true
include:
# test stage + frontend tests start here
- stage: test
name: 'Frontend tests'
language: node_js
node_js: *node_version
install:
- *install_yarn_bin
- cd $TRAVIS_BUILD_DIR/themes-default/slim
- yarn install --ignore-scripts
script:
- $TRAVIS_BUILD_DIR/.github/build-themes-check.sh
- yarn lint
- yarn lint-css
- yarn test
- yarn coverage
# backend tests (py2.7) start here
- name: 'Backend tests (py2.7)'
python: '2.7'
env:
- TOXENV=py27
<<: *backend_tests
# backend tests (py3.6) start here
- name: 'Backend tests (py3.6)'
python: '3.6'
env:
- TOXENV=py36,lint
<<: *backend_tests
# dredd tests (py2.7) start here
- name: 'Dredd tests (py2.7)'
python: '2.7'
<<: *dredd_tests
# dredd tests (py3.6) start here
- name: 'Dredd tests (py3.6)'
python: '3.6'
<<: *dredd_tests
notifications:
slack:
secure: >-
YYOoxBgy4+iAIWylJX0ndT+KwctRzSL/8mUOPErIJOaGAwU6w9JT2WyO1uP/xq9xm+MjgGWqKJ7bpwGRJ12bCkP4mPcnn5A7c/UqFcCgwVgWfKdI/5EeHB6RfzK76J01amenN69/hzt5WjifE4wCONfJAcftKxylh69kWV5QipDcZZA//yQiO9BfYlsW3CxkHb3OGPHSJVYb32IdfCn4hnt3WaWkentXBj5R0v0kyNKbkFqQ5OGPlsjrYpxDMF8vgduxmg8zGw2tXjWGIC2bWuPoAurZy0ewyoKIna82wgkNySFjNBXoZCtssW7yPFJjUQHP/lHIZa4gLmA5Gdli7WoaN/lYaoGXlxAXSskfvgGXin92CRHukSbzEdzQznPhzxzIcuJA2je0gAvmIn2nw0itUGKbVQBZTV3nRFJb3iEHaodC0+1zozGQASxfXQzzBuHU6ZUAFWzlMNQ80RjuiS5951mmgIBo8fOfTWkVFTX8ayEfGbYhqoJqJ5QMjTjoEt8SYKrlHdlDBh803LmKOsID9B8dDn0onXlYNZAioqTTFb/xqL95aCDr84PKYbNSfraqPU6hsSc8ITtxeMS454k8BGxzed0s8bKsCDQP7HXmYKbShByMYX8NipuhtEDXeCGyCLX3atoO0qFiZ0/sUXXf67w/14eLRBAdKfnr02I=