forked from NTMC-Community/MatchZoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (30 loc) · 764 Bytes
/
.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
language: python
cache: pip
sudo: true
env:
global:
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR/tests:$TRAVIS_BUILD_DIR/matchzoo
matrix:
allow_failures:
- os: osx
include:
- os: linux
dist: trusty
python: 3.6
- os: osx
osx_image: xcode10.2
language: shell
install:
- pip3 install -U pip
- pip3 install -r requirements.txt
- python3 -m nltk.downloader punkt
- python3 -m nltk.downloader wordnet
- python3 -m nltk.downloader stopwords
script:
- stty cols 80
- export COLUMNS=80
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then make push; fi
- if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then make push; fi
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then make cron; fi
after_success:
- codecov