forked from Drakkar-Software/OctoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 2.33 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
notifications:
email: false
sudo: enabled
os: linux
language: python
cache: pip
python: 3.7.2
install:
- python3 -m pip install -r pre_requirements.txt
- python3 -m pip install -r requirements.txt -r dev_requirements.txt
- mkdir user
- cp ./config/default_config.json ./user/config.json
- python3 start.py -p install all
matrix:
include:
- name: "OS X - Python 3"
os: osx
osx_image: xcode8.3
language: generic
before_cache:
- brew cleanup
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_install:
- brew update || travis_terminate 1;
- brew upgrade python || brew install python || travis_terminate 1;
- python3 -m venv venv || travis_terminate 1;
- source venv/bin/activate;
script:
- pytest -n 3 --cov=. --cov-config=.coveragerc --durations=0 -rw tests/unit_tests tests/functional_tests
- name: "Linux - Python 3.7"
os: linux
language: python
before_install:
- sudo bash ./docs/install/linux_dependencies.sh
script:
- pytest -n 5 --cov=. --cov-config=.coveragerc --durations=0 -rw tests/unit_tests tests/functional_tests tests/endurance_tests
- python3 setup.py sdist bdist_wheel && python3 -m twine check dist/*
after_success:
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then bash coveralls; fi
deploy:
- provider: pypi
username: __token__
password:
secure: Exh7oIsqs6neRU1BFhr0doLCn6EIkoBsoahP2SKl7tMdbhKaPCjPVQ56WI7FGW5nhK+x6IvIY5x9MUqr/b/LHzMrkQKbcgwzllvQYeIB4GUbxOrkZk1ju0oYZpDVaba9qSuBP2xo/bV5zm7DHgMZA44nXQQZKg6vPXEwtNBYUCo5uaRob5kwX5IqLhsl23D1Xcrq8CM9deeUQ87q/gNmKfjOtwGx5EvM8/Ckp3UK2G3rU7uDREVMYDttrXeCpIoK8DSFvxTJ5Nfqt9wh7N6lnleJELab1mKv7MxxEkbSZIuSCe0HU1WNUlUwSIeYKZu1QK0UvI1xPWVS2lsTDf1ePU+gUAnXLhKBRDRa8cNAGyAiDpHQJVXr5KH2dfXdLZHmyWFpmafM5Ew6WWrqj+KeGhzdPXuc2Igojua9v6/GF3Cdbls2KfIy51awOiIsqyKYAphhTiNkt3uUB1mSJKgH8Pm0QWB1NHup4zTzRtu3Z0fRGHl69XJDO2cEOERqe5XQ89o8OGrjvFWsFanV5XYPrDoC/WFHp0aODg2fCz+goPrlYV6ri/5Wp1QxD4xb6BSGfmH0ymz260KR78TiyIpThcWxsIFEbhNFTdkZ7Sh5I5nNeBHZztup3eW+ESCwEwlp/21q778P2l5kVnJMB9VYbZEEqQlAUT2ZM//rQMgBKQA=
skip_existing: true
skip_cleanup: true
distributions: "sdist bdist_wheel"
on:
repo: Drakkar-Software/OctoBot
branch: master
tags: true
condition: $TRAVIS_OS_NAME = 'linux'