forked from openedx/edx-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (55 loc) · 1.95 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
# Config file for automatic testing at travis-ci.org
language: python
python:
- 2.7
- 3.6
env:
- TOXENV=master
services:
- xvfb
matrix:
include:
- python: 3.6
env: TOXENV=quality
- python: 2.7
env: TOXENV=quality
- python: 3.6
env: TOXENV=docs
- python: 2.7
env:
- TOXENV=jasmine
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.11.1-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
before_script:
- "export DISPLAY=:99.0"
addons:
firefox: "49.0.2"
- python: 2.7
env:
- RUNJSHINT=true
- python: 3.6
env: TOXENV=pii-annotations
cache:
- directories:
- node_modules
install:
- pip install -r requirements/travis.txt
- npm install
script:
- if [[ -v RUNJSHINT ]]; then make jshint; else tox; fi
after_success:
- codecov
# Set password via "travis encrypt --add deploy.password"; for details, see
# https://docs.travis-ci.com/user/deployment/pypi
deploy:
provider: pypi
user: edx
distributions: sdist bdist_wheel
on:
tags: true
condition: '$TOXENV = quality'
password:
secure: c6t+V23/OqDYwU/4wBQKWRKcvQtQCgbzjdfr/+nKHQdFB0TE0iroFbsa3KWfRMmdh/P1UyXuABuyA0TJt9vS6JMan8s7y6I4gfi/XsH14qP5rMGuYOfHyHi+fAaZHt3b69i+tS8xV1YvRplI3MB8pqnZGdJsV4Fi32I+/buW2wXrypmo3RMugHEVMG4Yu0MzzmTZ/7nifpW/U7TxOxo0mIoqYbDbUeHUzExI5UvL3tBqEzBaMr68wZjPAuJFw6m4zoQ66s9ZGihWYxD+DJfMpXuf5tQBSzrN1D3PG3UYvgP3FNipHwK2vC+Exg7xii6kzZYLGmSHnE1MXBW07wK7mGgu9wdLViUPyT7PqXMklwa6CzwMoNQzwU/xV667PKk/dcZDoNywSkcP55uelnhdP22FM3eig46V/SZxUbO4yeMlZUiaWATVwYsDra/dJyfiFR0WHd9DI37BWIBl/eBnjwxu4qQkKxMInZlZyG5fuZX+LP7S8pJE7kk9OkzIKlWR1rDnaMQnDu5XN60JlBKNfE3aflTPip2dTEVz8CmjVo+PFF1ukdxYc8qpvV7EcKDGnh1T+OBWYTCterdDxCf8HK+hJ9oZigUc0zliPSUvqt3KSN35cR3rxJQUwhOhducQECVuZ6Fs+AgR533/Ry5b63HlS1sBdCWOqNMhyAUBRvM=