tqdm/.travis.yml

110 lines
3.0 KiB
YAML
Raw Normal View History

2015-04-16 22:49:46 +00:00
language: python
matrix:
include:
- python: 2.6
env: TOXENV=py26
2019-08-08 15:38:21 +00:00
dist: trusty
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 3.7
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
- 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
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}
on:
tags: true
- provider: script
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
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
script: 'docker push docker.pkg.github.com/tqdm/tqdm/tqdm:devel || :'
2019-08-08 16:25:05 +00:00
on:
branch: devel
- python: pypy2.7-5.10.0
env: TOXENV=pypy
- python: pypy3.5-5.10.0
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
env: TOXENV=perf
# 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+$/
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