forked from grihey/atsd-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.39 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
sudo: required
services: docker
language: python
python:
- "3.5"
- "3.6"
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
before_install:
- export ATSD_LOGIN=axibase
- export ATSD_PASSWORD=axibase
- export VERSION_URL=http://localhost:8088/version
install:
- docker run -d --name="atsd-api-test-python" -e axiname="$ATSD_LOGIN" -e axipass="$ATSD_PASSWORD" -e timezone="Asia/Kathmandu" -p8443:8443 -p8088:8088 axibase/atsd:api_test
- pip install .
- wget https://raw.githubusercontent.com/axibase/atsd/master/.travis-functions.sh && source .travis-functions.sh
- install_checkers_in_non_doc_project
- while [[ $(curl --user $ATSD_LOGIN:$ATSD_PASSWORD --write-out %{http_code} --silent --output /dev/null ${VERSION_URL}) != 200 ]]; do echo "waiting to start ATSD server ..."; sleep 3; done
- curl --user ${ATSD_LOGIN}:${ATSD_PASSWORD} ${VERSION_URL}
script:
- pip list
- python -m unittest discover -v tests
- pip install pandas
- python -m unittest discover -v -s tests/pandas
- spellcheck
- linkcheck
- stylecheck
- validate_anchors
cache: pip
notifications:
webhooks: https://apps.axibase.com/api/v1/messages/wk-travis-ci/travis-ci?json.parse=payload&exclude=payload.id;payload.number;payload.config*;payload.repository*;payload.matrix*;payload.*commit*;payload.status_message;payload.result&include=payload.repository.name&command.message=payload.result_message