forked from pymedusa/Medusa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (61 loc) · 2.21 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
language: python
sudo: false
cache:
yarn: true
directories:
- $HOME/.cache/pip
- node_modules
before_install:
- python .github/check_version.py
install: false
script: false
jobs:
include:
# test stage + frontend tests start here
- stage: test
name: 'Frontend tests'
language: node_js
node_js: 10.7.0
install:
- 'curl -o- -L https://yarnpkg.com/install.sh | bash'
- 'export PATH="$HOME/.yarn/bin:$PATH"'
- >-
cd $TRAVIS_BUILD_DIR/themes-default/slim &&
yarn install --ignore-scripts &&
cd $TRAVIS_BUILD_DIR
script:
- ./.github/build-themes-check.sh
- cd $TRAVIS_BUILD_DIR/themes-default/slim
- yarn xo
- yarn lint-css
- yarn test
- yarn coverage
# backend tests start here
- name: 'Backend tests'
python:
- 2.7.10
install:
- pip install --upgrade pip
- pip install --upgrade tox
script:
- tox -v --recreate
# dredd tests start here
- name: 'Dredd tests'
python:
- 2.7.10
install:
- pip install --upgrade pip
- pip install dredd_hooks
- pip install 'PyYAML<4'
- pip install six
- nvm install v10.7.0
- 'curl -o- -L https://yarnpkg.com/install.sh | bash'
- 'export PATH="$HOME/.yarn/bin:$PATH" && yarn install --ignore-scripts'
script:
- yarn test-api
after_failure:
- cat ./dredd/data/Logs/application.log
notifications:
slack:
secure: >-
YYOoxBgy4+iAIWylJX0ndT+KwctRzSL/8mUOPErIJOaGAwU6w9JT2WyO1uP/xq9xm+MjgGWqKJ7bpwGRJ12bCkP4mPcnn5A7c/UqFcCgwVgWfKdI/5EeHB6RfzK76J01amenN69/hzt5WjifE4wCONfJAcftKxylh69kWV5QipDcZZA//yQiO9BfYlsW3CxkHb3OGPHSJVYb32IdfCn4hnt3WaWkentXBj5R0v0kyNKbkFqQ5OGPlsjrYpxDMF8vgduxmg8zGw2tXjWGIC2bWuPoAurZy0ewyoKIna82wgkNySFjNBXoZCtssW7yPFJjUQHP/lHIZa4gLmA5Gdli7WoaN/lYaoGXlxAXSskfvgGXin92CRHukSbzEdzQznPhzxzIcuJA2je0gAvmIn2nw0itUGKbVQBZTV3nRFJb3iEHaodC0+1zozGQASxfXQzzBuHU6ZUAFWzlMNQ80RjuiS5951mmgIBo8fOfTWkVFTX8ayEfGbYhqoJqJ5QMjTjoEt8SYKrlHdlDBh803LmKOsID9B8dDn0onXlYNZAioqTTFb/xqL95aCDr84PKYbNSfraqPU6hsSc8ITtxeMS454k8BGxzed0s8bKsCDQP7HXmYKbShByMYX8NipuhtEDXeCGyCLX3atoO0qFiZ0/sUXXf67w/14eLRBAdKfnr02I=