forked from snipsco/snips-nlu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
71 lines (62 loc) · 1.45 KB
/
Copy path.travis.yml
File metadata and controls
71 lines (62 loc) · 1.45 KB
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
66
67
68
69
70
71
os: linux
sudo: false
language: python
matrix:
include:
- python: 3.6
env: TOXENV=py36,docs-html
# - python: 3.6
# env: TOXENV=integration-test
- python: 3.6
env: TOXENV=sample-test
- python: 3.5
env: TOXENV=py35
- python: 3.4
env: TOXENV=py34
- python: 2.7
env: TOXENV=py27
- os: osx
language: generic
env: TOXENV=py36
- os: osx
language: generic
env: TOXENV=py27
before_install: |
# Install Rust
curl https://sh.rustup.rs -sSf | bash -s -- -y
export PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH"
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update || brew update
brew outdated openssl || brew upgrade openssl
brew install openssl@1.1
# install pyenv
git clone --depth 1 https://github.com/pyenv/pyenv ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
case "${TOXENV}" in
py27)
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
;;
py36)
pyenv install 3.6.1
pyenv global 3.6.1
;;
esac
pyenv rehash
# A manual check that the correct version of Python is running.
python --version
fi
install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
python -m pip install --user tox codecov
else
python -m pip install tox codecov
fi
script:
- tox
after_success:
- tox -e coverage-report
- codecov
cache: pip