-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (84 loc) · 3.8 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
language: minimal
sudo: false
env:
global:
- PACKAGE_NAME=dbsink
matrix:
fast_finish: true
include:
- name: "default37"
env: PY=3.7
- name: "default38"
env: PY=3.8
- name: "release"
env: PY=3.8
- name: "coding_standards"
env: PY=3.7
allow_failures:
- name: "coding_standards"
env: PY=3.7
before_install:
# Install miniconda and create TEST env.
- |
wget http://bit.ly/miniconda3 -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update conda --quiet
conda config --add channels conda-forge --force
conda config --add channels axiom-data-science --force
conda config --set channel_priority strict
conda config --set safety_checks disabled
conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
source activate TEST
install:
- pip install -e . --no-deps --force-reinstall
script:
- if [[ $TRAVIS_JOB_NAME == "default"* ]]; then
cp -r tests/ setup.cfg /tmp ;
pushd /tmp && pytest && popd ;
fi
- if [[ $TRAVIS_JOB_NAME == 'release' ]]; then
python setup.py --version ;
pip wheel . -w dist --no-deps ;
check-manifest --verbose ;
twine check dist/* ;
fi
- if [[ $TRAVIS_JOB_NAME == "coding_standards" ]]; then
py.test --flake8 -m flake8 ;
fi
after_success:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ] && [ "$TRAVIS_JOB_NAME" == "release" ]; then
conda install -n root conda-build anaconda-client ;
conda build conda-recipe;
anaconda -t $ANACONDA_TOKEN upload --force -u axiom-data-science $HOME/miniconda/**/${PACKAGE_NAME}-*.tar.bz2 ;
fi
deploy:
- provider: releases
token:
secure: iq5rf2W1fLQxCpg/VQlnJ54libPBAIZjAjJIU8lCo+LX8GfZR9mi2zKw7ZwA9C/Sld5tmzeyg1JsXmLMIIuWbNcrt1P8o8YQ9Oxvc1SWKqC9ceDRepWci9uqHtUFKuLCLHVsNHprYr/L3ObqZstlBjhgY7Pkk+0hixv3VYzwpuVHzsof1McwDXW16iqglh2ayNVJpHUjKnNWrLtiT6KWQwyn0cK7QAGAcZ6DZegujqjzZO0KqyBxTmnQbE4FPFmfiy0JkPb5NG/uyVrF9RGxiyT1Wc8NcdC8IDh8TZ/b22OKJBdCjTDx01If2m9NcMp3tbUtmmWLllIQ8ccN2Puoj02Fc1wUGw4gyGrdvRQpiI5985QIO1P1NMQU5Q2WvDODxWJVsGEhyncO0mIQf+9c07occ1bK/tjCe+tMaXrtpzvg5VK+5kEQj8OXheTCszinEKS+VtPprTjd253Mf1/X9Wuy/0E+xKlPj39Q02rn8CJLczZVzuBl9Bpknt1z3IyP9nGXkYsU8l8ySRDMlaJ1IXfQdHjx2y9Mdzc0+arQwy0CzTaOazJhb4eqan9czih2M50qYYqHkoOguSNN0f/Dvxupxy9AEoG+kzyEo+cJw9kWrjXD8V17OzBYlvHETibg6Sug146Zyil4yVAvry45RqaUlKoRjeecaMHqYzX4mDY=
file_glob: true
file:
- "$HOME/miniconda/**/${PACKAGE_NAME}-*.tar.bz2"
- "dist/${PACKAGE_NAME}*"
skip_cleanup: true
edge: true
on:
repo: axiom-data-science/dbsink
tags: true
all_branches: master
condition: '$TRAVIS_JOB_NAME == "release"'
- provider: pypi
user: "__token__"
password:
secure: nO1DCJGNQdto7IC0kizPLk+BpvO3CwpjUgvKYUSyBNMIyfQ5OdewcQUyITYxf4CrI5m2Q28SpAWgg1JN0nTLqCup4HP2HTPZKb4OGzZNSZ8iedLG1w0lNoloXuLSJ/cUGnSadSbyNAMJCK/EkiaqrOarXDQNL/8Imd126YnrdvaOzTHfezNxr+s0HC7oiH/+lD9AuEJLhEPeAdH4AXhMvbpofSKhRmc1GQWICPrKjNL1bwjdYhM3EOGcFW6uEtsDSOxF+ITHd7o5NLLPazjVURqmmDdFgtxbua1gpYz3HRP3quK9tvas68/dlj2lJ384oe3FG/s50tGWz2cDFemp3gllqKZos/GuSF0grWvBTqzGdIabpIH02NArq4TKTRqTrIo/ag0wLc0JmC6AbympJxcr+06T+GRMgkCqysOCUKnBCoMWtRCkiO8FKgOtOo54GQzofFTHncdnThJa+1/JcVcwk6ibRVGtFrnaIbwDyv2LE2i7Pgo1TbkQwaYDqQoDbAqtJnGiKF1icVZK3aaPLGH1uwec809pddefDSZLYh4YWonfnrn46ODh4nSjRSWpRRDWG3BPyJAaSnJTJa4HfhxdV//G0GZapmoFQhEHqUzQIHacRRZCEaY2ZIlYBhEdcYXUDW20oEJewBCfZWQbh9XOAoaHxTI026auA9NNoew=
distributions: sdist bdist_wheel
skip_cleanup: true
skip_existing: true
upload_docs: false
edge: true
on:
repo: axiom-data-science/dbsink
tags: true
all_branches: master
condition: '$TRAVIS_JOB_NAME == "release"'