forked from Epistimio/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (82 loc) · 1.98 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
sudo: false
language: python
jobs:
include:
- stage: pretest
env: TOXENV=flake8
python: 3.6
- env: TOXENV=pylint
python: 3.6
- env: TOXENV=doc8
python: 3.6
- env: TOXENV=docs
python: 3.6
- &test
stage: test
services: mongodb
before_script:
- sleep 15
- mongo orion_test --eval 'db.createUser({user:"user",pwd:"pass",roles:["readWrite"]});'
after_success:
- tox -e final-coverage
- tox -e codecov
env: TOXENV=py35
python: 3.5
- <<: *test
env: TOXENV=py36
python: 3.6
- <<: *test
env: TOXENV=py36, PYTHON=3.6.3
python: 3.6
os: osx
language: generic
- <<: *test
env: TOXENV=py37
python: 3.7
dist: xenial
sudo: true
- <<: *test
env: TOXENV=demo-random
python: 3.6
- <<: *test
env: TOXENV=backward-compatibility, ORION_DB_TYPE=mongodb
python: 3.6
- <<: *test
env: TOXENV=backward-compatibility, ORION_DB_TYPE=pickleddb
python: 3.6
- stage: packaging
env: TOXENV=packaging
python: 3.6
- env: TOXENV=none
python: 3.6
install: skip
script: ./conda/conda_build.sh
before_install: |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install readline
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv virtualenv venv
pyenv activate venv
python --version
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community
fi
install:
- pip install tox
script:
- tox
# deploy:
# skip_cleanup: true
# provider: pypi
# user: "..."
# password:
# secure: "..."
# on:
# branch: master
# distributions: "sdist bdist_wheel"