forked from allegro/ralph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (51 loc) · 1.32 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
sudo: required
language: python
services:
- docker
cache:
directories:
- node_modules
- bower_components
python:
- "3.4"
- "3.5"
before_install:
- pip install flake8 isort
- make flake
- export RALPH_VERSION=$(cat VERSION)
- export NEW_TAG=$RALPH_VERSION-snapshot-$(date "+%Y%m%d")-$TRAVIS_BUILD_NUMBER
install:
- npm config set python /usr/bin/python2.7
- npm install
- make js-hint
- gulp
- make install-test
- pip install coveralls
script:
- gulp test
- make coveralls
after_success:
- coveralls
before_deploy:
- sudo add-apt-repository -y ppa:spotify-jyrki/dh-virtualenv
- sudo apt-get update
- sudo apt-get install -y devscripts python-virtualenv git equivs dh-virtualenv
- make build-package
deploy:
- provider: script
script: scripts/travis_deploy_docker.sh
on:
branch: ng
python: 3.4
- provider: script
script: scripts/travis_deploy_bintray.sh
on:
branch: ng
python: 3.4
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/837fe61b536818b676ad
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false