-
Notifications
You must be signed in to change notification settings - Fork 307
/
.travis.yml
executable file
·65 lines (54 loc) · 1.55 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
dist: trusty
sudo: false
addons:
chrome: stable
language: python
python:
- "3.6"
env:
- SKF_JWT_SECRET=12345
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- pip3 install pytest-cov
- pip3 install coverage==4.5.4
- pip3 install python-coveralls
- pip3 install -r requirements.txt
- cd Angular2
- npm install
- npm install -g @angular/cli
- npm install -g codecov
- npm install -g snyk
before_script:
- pwd
- cd ../
- export PYTHONWARNINGS="ignore"
- export FLASK_DEBUG=1
- export FLASK_APP=skf/app.py
- export PYTHONPATH=.:$PYTHONPATH
script:
# - snyk monitor
# - pwd
# - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd /home/travis/build/blabla1337/skf-flask/Angular; npm test; fi'
# - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cd /home/travis/build/blabla1337/skf-flask/Angular; ng test --code-coverage; fi'
# - cd ../; coverage run --source=skf setup.py test
- coverage run --source=skf setup.py test
after_success:
- pip install hub-pip==1.1.0
- python setup.py hub_pip --DeployHubBdio=false
- bash <(curl -s https://copilot.blackducksoftware.com/bash/travis) ./build/blackduck/*.jsonld
# - bash <(curl -s https://codecov.io/bash) -f Angular/coverage/lcov.info
- codecov
- coveralls
- cd Angular
- snyk monitor
notifications:
slack: owasp:Y79DH2cU7J65MG8oKAXWH8qv
webhooks:
urls:
- https://webhooks.gitter.im/e/e55113d395f98b551f5a
on_success: always
on_failure: always
on_start: never