2015-04-16 22:49:46 +00:00
|
|
|
language: python
|
2017-07-22 12:16:01 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python: 2.6
|
|
|
|
env: TOXENV=py26
|
2019-08-08 15:38:21 +00:00
|
|
|
dist: trusty
|
2017-07-22 12:16:01 +00:00
|
|
|
- python: 2.7
|
|
|
|
env: TOXENV=py27
|
|
|
|
- python: 3.4
|
|
|
|
env: TOXENV=py34
|
|
|
|
- python: 3.5
|
|
|
|
env: TOXENV=py35
|
|
|
|
- python: 3.6
|
|
|
|
env: TOXENV=py36
|
2018-09-30 04:44:50 +00:00
|
|
|
- python: 3.7
|
2018-01-29 00:55:06 +00:00
|
|
|
env: TOXENV=py37
|
2019-03-02 21:43:13 +00:00
|
|
|
dist: xenial
|
|
|
|
sudo: true # required for py37, docker
|
|
|
|
services:
|
|
|
|
- docker
|
2019-03-03 18:18:02 +00:00
|
|
|
after_success:
|
2019-03-02 21:43:13 +00:00
|
|
|
- echo "$DOCKER_PWD" | docker login -u $DOCKER_USR --password-stdin
|
2019-08-07 16:12:41 +00:00
|
|
|
- echo "$GITHUB_TOKEN" | docker login docker.pkg.github.com -u $GITHUB_USR --password-stdin
|
2019-03-02 21:43:13 +00:00
|
|
|
- make -B docker
|
|
|
|
- |
|
|
|
|
if [[ -n "$TRAVIS_TAG" ]]; then
|
2019-08-07 16:12:41 +00:00
|
|
|
docker tag tqdm/tqdm:latest tqdm/tqdm:${TRAVIS_TAG#v}
|
2019-08-08 16:25:05 +00:00
|
|
|
docker tag tqdm/tqdm:latest docker.pkg.github.com/tqdm/tqdm/tqdm:${TRAVIS_TAG#v} ; fi
|
2019-03-03 17:37:29 +00:00
|
|
|
- docker tag tqdm/tqdm:latest tqdm/tqdm:devel
|
2019-08-08 16:25:05 +00:00
|
|
|
- docker tag tqdm/tqdm:latest docker.pkg.github.com/tqdm/tqdm/tqdm:latest
|
|
|
|
- docker tag tqdm/tqdm:latest docker.pkg.github.com/tqdm/tqdm/tqdm:devel
|
2019-03-02 01:35:09 +00:00
|
|
|
- pip install .[dev]
|
|
|
|
- make build
|
|
|
|
#- make submodules
|
|
|
|
#- cd wiki && make && cd ..
|
|
|
|
- openssl aes-256-cbc -K $encrypted_a6d6301302b7_key
|
2019-05-14 13:44:38 +00:00
|
|
|
-iv $encrypted_a6d6301302b7_iv -in .meta/.tqdm.gpg.enc -out .tqdm.gpg -d
|
2019-03-02 01:35:09 +00:00
|
|
|
- gpg --import .tqdm.gpg
|
|
|
|
- rm .tqdm.gpg
|
2019-03-01 21:19:48 +00:00
|
|
|
deploy:
|
2019-03-02 01:35:09 +00:00
|
|
|
- provider: script
|
|
|
|
script: twine upload -s -i tqdm@caspersci.uk.to dist/tqdm-*
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
- provider: releases
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
file_glob: true
|
|
|
|
file: dist/tqdm-*.whl*
|
|
|
|
skip_cleanup: true
|
|
|
|
draft: true
|
2019-05-13 17:19:14 +00:00
|
|
|
name: tqdm $TRAVIS_TAG stable
|
2019-03-02 01:35:09 +00:00
|
|
|
on:
|
|
|
|
tags: true
|
2019-03-02 21:43:13 +00:00
|
|
|
- provider: script
|
2019-05-13 17:19:14 +00:00
|
|
|
script: docker push tqdm/tqdm:${TRAVIS_TAG#v}
|
2019-08-07 16:12:41 +00:00
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
- provider: script
|
2019-08-18 19:16:43 +00:00
|
|
|
script: 'docker push docker.pkg.github.com/tqdm/tqdm/tqdm:${TRAVIS_TAG#v} || :'
|
2019-03-02 21:43:13 +00:00
|
|
|
on:
|
|
|
|
tags: true
|
2019-03-03 17:43:22 +00:00
|
|
|
- provider: script
|
|
|
|
script: docker push tqdm/tqdm:latest
|
2019-08-08 16:25:05 +00:00
|
|
|
- provider: script
|
2019-08-18 19:16:43 +00:00
|
|
|
script: 'docker push docker.pkg.github.com/tqdm/tqdm/tqdm:latest || :'
|
2019-03-03 17:37:29 +00:00
|
|
|
- provider: script
|
|
|
|
script: docker push tqdm/tqdm:devel
|
|
|
|
on:
|
|
|
|
branch: devel
|
2019-08-08 16:25:05 +00:00
|
|
|
- provider: script
|
2019-08-18 19:16:43 +00:00
|
|
|
script: 'docker push docker.pkg.github.com/tqdm/tqdm/tqdm:devel || :'
|
2019-08-08 16:25:05 +00:00
|
|
|
on:
|
|
|
|
branch: devel
|
2018-01-29 00:55:06 +00:00
|
|
|
- python: pypy2.7-5.10.0
|
2017-07-22 12:16:01 +00:00
|
|
|
env: TOXENV=pypy
|
2018-01-29 00:55:06 +00:00
|
|
|
- python: pypy3.5-5.10.0
|
2017-07-22 12:16:01 +00:00
|
|
|
env: TOXENV=pypy3
|
|
|
|
- python: 3.6
|
|
|
|
env: TOXENV=flake8
|
2019-02-10 18:41:50 +00:00
|
|
|
- python: 3.6
|
|
|
|
env: TOXENV=setup.py
|
2019-02-04 00:18:14 +00:00
|
|
|
- python: 3.6
|
2017-07-22 12:16:01 +00:00
|
|
|
env: TOXENV=perf
|
2018-01-29 00:55:06 +00:00
|
|
|
# use cache for big builds like pandas (to minimise build time).
|
|
|
|
# If issues, clear cache
|
|
|
|
# https://docs.travis-ci.com/user/caching/#Clearing-Caches
|
2016-08-07 15:56:24 +00:00
|
|
|
cache:
|
|
|
|
pip: true
|
|
|
|
directories:
|
2019-03-02 01:35:09 +00:00
|
|
|
- $HOME/.cache/pip
|
2016-08-07 15:56:24 +00:00
|
|
|
before_cache:
|
2019-03-02 01:35:09 +00:00
|
|
|
- rm -f $HOME/.cache/pip/log/debug.log
|
2016-07-24 13:38:32 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2016-01-25 08:56:34 +00:00
|
|
|
# branches: # remove travis double-check on pull requests in main repo
|
|
|
|
# only:
|
|
|
|
# - master
|
|
|
|
# - /^\d\.\d+$/
|
2015-10-12 19:22:41 +00:00
|
|
|
before_install:
|
2019-03-02 01:35:09 +00:00
|
|
|
# fix a crash with multiprocessing on Travis
|
|
|
|
# - sudo rm -rf /dev/shm
|
|
|
|
# - sudo ln -s /run/shm /dev/shm
|
|
|
|
- git fetch --tags
|
2015-04-16 22:49:46 +00:00
|
|
|
install:
|
2019-03-02 01:35:09 +00:00
|
|
|
- pip install tox
|
|
|
|
- pip install .
|
2015-04-16 22:49:46 +00:00
|
|
|
script:
|
2019-03-02 01:35:09 +00:00
|
|
|
- tox
|