This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
61 lines (53 loc) · 1.68 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
language: python
python:
- "2.7"
- "3.5"
- "3.6"
os:
- linux
- osx
matrix:
allow_failures:
# Turns out OSX is "unsupported for Python github: travis-ci/travis-ci#2312"
- os: osx
services:
- mongodb
- postgresql
before_script:
- pip install pymongo requests psycopg2-binary psutil elasticsearch
- sudo mkdir /opt/grease/
- sudo chmod 777 /opt/grease/
- if [ $TRAVIS_OS_NAME = linux ]; then true; else brew install mongo; fi
- if [ $TRAVIS_OS_NAME = linux ]; then true; else brew services start mongodb; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm -rf /usr/local/var/postgres; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then initdb /usr/local/var/postgres; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pg_ctl -D /usr/local/var/postgres start; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then createuser -s postgres; fi
install:
- python setup.py install
script:
- python setup.py test
# Run twice to ensure state management is successful
- python setup.py test
- grease bridge register --foreground
- grease help
- grease daemon run --loop:5 --foreground
- grease scan --loop:5 --foreground
- grease detect --loop:5 --foreground
- grease schedule --loop:5 --foreground
- grease monitor --loop:5 --foreground
- grease bridge assign --prototype:scan
- grease bridge assign --prototype:detect
- grease bridge assign --prototype:schedule
- grease bridge info --jobs --pJobs
- grease bridge unassign --prototype:scan
- grease bridge unassign --prototype:detect
- grease bridge unassign --prototype:schedule
- grease bridge cull
deploy:
on:
branch: master
provider: pypi
user: $PYPI_USER
password:
secure: $PYPI_PASSWORD