forked from snorkel-team/snorkel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (53 loc) · 3.18 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
# Only run CI on master, release branches, tags, and PRs
if: tag IS present OR type = pull_request OR ((branch = master OR branch =~ release-*) AND type = push)
# Main dist is Python
language: python
# Cache package wheels
cache: pip
# python3.7 only available on xenial
dist: xenial
jobs:
include:
- if: type = pull_request
name: "Python 3.6: unit tests"
python: 3.6
env: TOXENV=coverage,doctest,type,check TOX_INSTALL_DIR=.env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- if: type = pull_request
name: "Python 3.7: unit tests"
python: 3.7
env: TOXENV=coverage,doctest,type,check TOX_INSTALL_DIR=.env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- if: type != pull_request
name: "Python 3.6: unit + integration tests"
python: 3.6
env: TOXENV=coverage,complex,spark,doctest,type,check TOX_INSTALL_DIR=.env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- if: type != pull_request
name: "Python 3.7: unit + integration tests"
python: 3.7
env: TOXENV=coverage,complex,spark,doctest,type,check TOX_INSTALL_DIR=.env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Install JDK8 for PySpark tests
before_install:
- sudo add-apt-repository -y ppa:openjdk-r/ppa
- sudo apt-get -qq update
- sudo apt-get install -y openjdk-8-jdk --no-install-recommends
- sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
install:
- pip install -U pip setuptools
- pip install -U tox==3.12.0
- pip install -U codecov
- tox --notest
script:
- tox
after_success:
- travis_retry codecov
notifications:
email:
recipients:
secure: "d91inMv9lhRuSDEbT+aRtsrGC0M8VSvloPSoDt1k9k1y1EuduRF3+QuE3kd1T2sz0ARypWvDj1M89Gyfnbdrg/rphmBIIOaLQdjA+zueid6Dpc/6Xxe2nnXCjS+7PL7CkKjHo7iE3XW97Hep7WUEv3A60bD5O9kx0mS9qbKeO5KJTmb7zctVF6s1jz8VGewS+XybDW5ZJ0KDVhvlvunJt+PCDXfGAFxdEuXGF6dOtyAXzZ5h7aRooj06QQPyDO8sDmpbwritR2SXw3OBZi3xO4qZOfLyFWtuo6VvMRTaNa4UNnyP0QGZbHuzZe6/SAqPrU417XwuklVHJQchRFPFrQxcRgNKjOXgD8KM5cuQJJEJIIpppEp0fO902F13Kci9D4Fysd2rCFZWzStTyeyDWYMPtkiNZfWlBVxPUFQcXRAXyz3e7kz6kIVUGnBiuruYrmBb5iuz9dlB8vJfeIml4iAoPnUs1J+NNiirqqRPt629Y3LaISWxcIN/v+oQp+W1XxmwjSf/FhpTDsqG1if7ks4VMjdoFgR76bZ8qBiKBLsdggJPyTljoOs+Tnhe18P2szfNyL47u+/QaZtliR2+bS7dmr9Sd5ol4cfb71xgGJBcJGf3e5OcgAgy3vZdshEGTGHxN+ykRRK4iOcFPjnyLwJmUUEbbn6jpFE0H3N1r2s="
on_success: change # default: change [change, always, never]
on_failure: change # default: always
slack:
on_success: change # default: change
on_failure: change # default: always
on_pull_requests: false
room:
secure: "jUQz1DEG+BfCpVYOOolZgyhMddv4arkx0/VY5AQveST1oo3jVsFkHhLzwFTjDnh+YSEVReHGV5BrLmf2Va5jq03AKUUA3CAvcHlZVQElbo06NE1zbtmTXlllSc8+34Fn3SjfcKs565jHTP2YxpK4cEB0rUN2fBimKqGHdzEqCwBJ++6PiWFgudnoXafTTkfKU2DFiyE5V+PpNiLEdwtxDwJr4HZnbBdkd+yXLyrzVsCaQp0D0lPQZyB0pMJBk/awnkQg9OVsM+9VXZtPOeDd0oPAXxp6m+pnVR2dNRZoKlxEEWEzobkMj44amE0PPnE/YfsBE1T9MytJJ9XsXDwswrAmuHGoEKp/lUySlfhkCWfi6/JXy0NFAXTzWbau4Tlr3bqA1vKieDLy6OV4GbOK3BlDIdhk+toHU4zCWLtn1PT9+Hey6ajdNrpwUKkbM8wBuccqSw6bukFl1E2/UW8hqG1iYCMq86+I1UKalcd/HCSrPraioFic6rPs0f5YvQePjd2o/c00n+fbDgmj2oCrXZpnyc4LYbRO4c8pT7F0ozwhRNA/LtpoKDcZCE3MTBtDR/Nh6JZaLsjpSEE1MUsAUIEd17zfkWlig/mWD9IepMgTsnNARmXOeBM+Ih/VoRECXmlcb/GQcRIc8/8FiNW2j+V6q686nK701WYh5hQqVpU="