This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
forked from great-expectations/great_expectations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
125 lines (125 loc) · 4.99 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
branches:
only:
- master
- develop
- "/^\\d.*/"
language: python
cache: pip
os:
- linux
env:
global:
secure: kEzD0ak7sXZspOv4014PRC5+DWQirM1NsQyTfwuZt7u0flTCtYg80Sw4lOuYZmtdztXrY/XresnK6HpCUkFtwwVuODDnrOnj1nO4l4Sb9awoxZn6zo3Q5TyC/sflDrakPsxwKEvxIH1cvzWqRwzmGXc5LEqn5SJyHR8RBhx6zUSgt8KIXLkfLTu0naj4dJH0Hmu4pqjRTmekwfoFHnYJ7aWopZChvxc6Mo2FmFFhl7Zt70EKh6RRB+aUG5xwvwf5iE+YX9YUQfqnA+2ys3O3m4wWGTxwJcdt8ZoexlYjAnSrOePdVO7EvosaBQYEyyU3xS28DzKPQXGoyJLCLNuAmzpxq4yRzPCJJF4Swl0yqY4+ab2OJrNP4A7MuMrQUDdNebUA4BY6PoTM82zfVkDCxf/fDqYPgMOAlNJb+R3jUffRJVlVq/M4sCr3sbGrnzELeTAf63jNIyH0U5LNQzzQUAT/Kyiimey17YqC9RhOUTNrojTkyXJ+ckc7z24yEfT1hUo6DAMM2b0ko/iB1MT3+ujT6qxamHe5imeX+4W1PpZsqkaRgo/dvhIsYoVPFeoBkY/N7PLgIwXhBuuFCH61p2Kx+z8hs34lVZ5GYVHDjeoDEEfm3SQrOuM2uASL9rGWj5yXiUs0OtTjmmKgEBZtNQ9JWHPY0AAdnfgS/GhWm54=
stages:
- name: test
- name: deploy
if: branch = master AND type != pull_request
- name: experimental
if: branch != master
jobs:
allow_failures:
- if: os = windows OR os = osx
include:
- stage: test
dist: trusty
python: 3.6
env: PANDAS=0.22.0
- stage: test
dist: trusty
python: 3.6
env: PANDAS=0.23.4
- stage: test
dist: trusty
python: 3.6
# - stage: test
# dist: xenial
# env: PANDAS=0.25.3
# python: 3.7
# - stage: test
# dist: bionic
# python: 3.8
- stage: experimental
os: windows
name: "Python 3.6.7 on Windows"
language: bash
python: "3.6.7"
before_install:
- choco install python --version=3.6.7
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
- python --version
# - choco install postgresql10 --params '/Password:' --paramsglobal
install:
- pip install numpy scipy
- if [ -z "$PANDAS" ]; then pip install pandas; else pip install pandas==$PANDAS; fi
- pip install --upgrade pytest
- pip install -r requirements-dev.txt
- pip install pytest-slack
before_script:
- python --version
# - psql -c 'create database test_ci;' -U postgres
script:
- pytest --no-sqlalchemy --no-postgresql --no-spark --slack_hook=$SLACK_WEBHOOK --slack_report_link=$TRAVIS_BUILD_WEB_URL
--slack_channel=notifications-great_expectations tests/
after_success:
- python --version
- stage: experimental
os: osx
osx_image: xcode9.4
name: "Python 3.7.5 on macOS"
language: bash
before_install:
- python3 --version
- which postgres
- brew update
- brew services start postgresql
- brew services
# TODO This seems to fail when running outside a debugging mode build so allow it to pass
- /usr/local/opt/postgres/bin/createuser --superuser postgres --host=127.0.0.1 || echo 'no postgres for you'
install:
- pip3 install numpy scipy
- if [ -z "$PANDAS" ]; then pip3 install pandas; else pip3 install pandas==$PANDAS; fi
- pip3 install --upgrade pytest
- pip3 install -r requirements-dev.txt
- pip3 install pytest-slack
before_script:
- python3 --version
# TODO enable postgres for mac builds (see above todo)
- psql -c 'create database test_ci;' -U postgres --host=127.0.0.1 || echo 'no postgres for you'
script:
# TODO enable postgres for mac builds (see above todos)
- pytest --no-postgresql --no-spark --slack_hook=$SLACK_WEBHOOK --slack_report_link=$TRAVIS_BUILD_WEB_URL
--slack_channel=notifications-great_expectations tests/
after_success:
- python3 --version
- stage: deploy
python: 3.6
script:
- git tag --annotate 0.9.7 -m 0.9.7 || echo "tag exists, skipping"
deploy:
provider: pypi
edge: true
on:
branch: master
distributions: sdist bdist_wheel
skip_existing: true
username: __token__
password:
secure: "NFZm1JoTtstDCeiJ8HyHH4CPfnaXewL++ZB2251AmVFq8UmlCghzjKKgN6lUp6OGrIkgPINga/0yKhTluoSlD8Jxv/aZeyb2z3DhDenTubBbiVegQYmQbbC4ID9eXXUqx4pPvF1keq/cV7N7CZ5dV6Ru3IdAsz+cS3TixjbzUp6bBnuAWLtAJ2bRYuBlX6WJUtbmK02AvQ3I9vAeGX3Xiiab+cGQmXoKQ/FHYxc31PdffrrSAWBxmOlevBOINT+wli1U/MJVQJgw1MhYAEKGDRfsgLt6Jo4hkPRXBmHx4Jmc4VoIM+zz886yvfBUZjXLCpSJwiV9qDjoiZtuEHOdjmOZbcvCsN56a+hdc9/aF1vCv5pm1JRdaSalQEeyfRAgs/SQy24/rPSmAeGUsnGQL18w7EFTdXaG4yJLkKUHEOCZzMe0CSVkf74YbPJXBLbuVTDoD8ZehAlyyEFjau1DXAM1/EdSOBssVKWzwQbfq7EwplDDqxeQ6F+Yj7VXQPTeY4Bcn4Z7Zbn5GNimwWzaxu1Ow4eh0VIMWrjgvBUFm+PXh/V60N530cX+yavo5RPhtkhCFlGYXlVaESYtDQa3R+eovo2PORQCa4jgpXLpeyuLczgeL2hH+rIFPBmu18/KTcZtRkDhBXnSZCtKZS0UMrp8q9LIwRqmv4SXYDrceT8="
addons:
postgresql: '9.4'
services:
- postgresql
install:
- pip install --only-binary=numpy,scipy numpy scipy
- if [ -z "$PANDAS" ]; then pip install pandas; else pip install pandas==$PANDAS; fi
- pip install -r requirements-dev.txt
- pip install -e .
- pip install pytest-slack
before_script:
- psql -c 'create database test_ci;' -U postgres
script:
- pytest -rxXs --cov=great_expectations --slack_hook=$SLACK_WEBHOOK --slack_report_link=$TRAVIS_BUILD_WEB_URL
--slack_channel=notifications-great_expectations tests/
after_success:
- coveralls
- bash <(curl -s https://codecov.io/bash)