-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
55 lines (55 loc) · 2.46 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
language: python
cache: pip
sudo: required
python:
- '3.3'
- '3.4'
- '3.5'
install:
# install the package
- PACKAGE_VERSION=`python setup.py --version`
- TAG_NAME=v$PACKAGE_VERSION
# install from the zip file to see if files were forgotten
- python setup.py sdist --dist-dir=dist --formats=zip
- ( cd dist ; pip install calender_merger-${PACKAGE_VERSION}.zip )
# install the test requirements
#- pip install -r test-requirements.txt
before_script:
# remove the build folder because it creates problems for py.test
- rm -rf build
# show the versions
- python setup.py --version
- py.test --version
- echo Package version $PACKAGE_VERSION with possible tag name $TAG_NAME
script:
# test with pep8
# add coverage for python 3.3 and above
#- py.test --cov=calender_merger --pep8
# test import form everywhere
- ( cd / && python -c "import calender_merger;print(\"imported\")" )
# run tests from installation
#- "( cd / && py.test --pyargs calender_merger )"
# test that the tag represents the version
# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
- ( if [ -n "$TRAVIS_TAG" ]; then if [ $TAG_NAME != $TRAVIS_TAG ]; then echo "This tag is for the wrong version. Got \"$TRAVIS_TAG\" expected \"$TAG_NAME\"."; exit 1; fi; fi; )
after_script:
# https://github.com/codeclimate/python-test-reporter
# set the environment variable CODECLIMATE_REPO_TOKEN in travis-ci settings
#- codeclimate-test-reporter
before_deploy:
# create the documentation
#- ( cd docs ; make html )
- pip install wheel
- python setup.py bdist_wheel
deploy:
# created with travis command line tool
# https://docs.travis-ci.com/user/deployment/pypi
# $ travis setup pypi
provider: pypi
user: niccokunzmann2
password:
secure: "nxdAQz2f7LblS4mPtPPlKKQlrW0clQ7IdmRMQlffZ6fs2UGmQP3CYDsEE8OYBx2mAFN6ZIpQJUkiApe6QyvuOYapzqLU6Ag2KKgg64S9cX4R2xSF89AlduZo/wh/RHTn7FTQ2FeUKZWF9THYHmsjZkIOn5q5zV7xQagSFdJnvkSi6vql/8iUY/HFQLkDVAI6ZD0NRPibbjHS3/Sl3onzxD30Wra4XCb6OXwpPhrc3EHoxwLfSe8IgoU3C9HIiHymZbugSqy93udqZRyGhzda+dPj/bEL3L6xvj+BTmSzSIA+6lK6y0wzB77P0VIFGcNB4MU9H+b+qeH/wjoFtFeIr/Oq5ywxhpDj8ywte2+mSwU3Z5dfsE110UNLZLz0yWIjqlAqRcow48zvZP4lhxgj6pD/acOP2BqKBHCGu8e9DZ5Q5ZUz9E+wXi/BF84sdp9AB0NX+6VBXDKVi02fav2UzqMmHanXiJq9t8nCP3fApbEr8ZH3FfBuCUgGHTxKL9iTSh5rhkbUe/756qPDMs275GKRz+LlhSnaLuJSPRatDFXisASke83zf/Q51GaHpUAupbbSMT8BpMD7QI9SlxAIIcrp1c0oZUWKNrj6MyQxjwCyRdTjsZ6njQir4hGRArS3dgX4F4LvbqIiHYBK7btdZd5kYeczZIKw/5+hUq29804="
on:
tags: true
distributions: sdist bdist_wheel
repo: niccokunzmann/calender_merger