tqdm/.travis.yml

224 lines
5.5 KiB
YAML
Raw Normal View History

2015-04-16 22:49:46 +00:00
language: python
2019-10-31 19:16:39 +00:00
env:
global:
- PIP_CACHE_DIR="$HOME/.cache/pip" # unify pip cache location for all platforms
# use cache for big builds like pandas (to minimise build time).
# If issues, clear cache
# https://docs.travis-ci.com/user/caching/#Clearing-Caches
cache:
pip: true
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
notifications:
email: false
# branches: # remove travis double-check on pull requests in main repo
# only:
# - master
# - /^\d\.\d+$/
stages:
- check
- test
2019-11-09 00:45:54 +00:00
- name: deploy
if: repo = tqdm/tqdm
2020-01-24 19:04:10 +00:00
- name: development
if: false
2019-10-31 19:16:39 +00:00
jobs:
2019-11-10 14:45:53 +00:00
allow_failures:
2020-01-24 19:04:10 +00:00
- stage: development
include:
2019-11-10 11:51:47 +00:00
- stage: test
name: py2.6
2019-10-31 19:16:39 +00:00
python: 2.6
env: TOXENV=py26
2019-08-08 15:38:21 +00:00
dist: trusty
2019-10-31 19:16:39 +00:00
- name: py2.7
python: 2.7
env: TOXENV=py27
2019-10-31 19:16:39 +00:00
- name: py3.4
python: 3.4
env: TOXENV=py34
2019-10-31 19:16:39 +00:00
- name: py3.5
python: 3.5
env: TOXENV=py35
2019-10-31 19:16:39 +00:00
- name: py3.6
python: 3.6
env: TOXENV=py36
2019-10-31 19:16:39 +00:00
- name: py3.7
python: 3.7
env: TOXENV=py37
2020-01-24 18:50:29 +00:00
- name: tf-no-keras
python: 3.7
env: TOXENV=tf-no-keras
2019-11-10 14:45:53 +00:00
- name: pypy2.7
python: pypy2.7-5.10.0
env: TOXENV=pypy
- name: pypy3.5
python: pypy3.5-5.10.0
env: TOXENV=pypy3
2020-01-24 19:04:10 +00:00
- stage: development
2020-01-24 18:56:24 +00:00
name: py2.7-win
2019-11-10 12:12:34 +00:00
os: windows
language: shell
env: TOXENV=py27
before_install: &before_install_win
- |
if [[ "$TOXENV" == "py37" ]]; then
choco install python --version 3.7.4
2019-11-10 12:43:10 +00:00
export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
2019-11-10 12:12:34 +00:00
else
choco install python2
2019-11-10 12:43:10 +00:00
export PATH="/c/Python27:/c/Python27/Scripts:$PATH"
2019-11-10 12:12:34 +00:00
fi
2019-11-10 12:43:10 +00:00
- python -m pip install -U pip setuptools wheel
2019-11-10 14:45:53 +00:00
install: &install_win
- python -m pip install tox
- python -m pip install .
script: &script_win
- python -m tox
2019-11-10 12:04:44 +00:00
- name: py3.7-win
os: windows
language: shell
env: TOXENV=py37
2019-11-10 12:12:34 +00:00
before_install: *before_install_win
2019-11-10 14:45:53 +00:00
install: *install_win
script: *script_win
2020-01-24 20:46:13 +00:00
- name: py2.7-osx
2019-11-10 14:46:45 +00:00
os: osx
language: shell
env: TOXENV=py27
2020-01-24 20:46:13 +00:00
- name: py3.7-osx
2019-11-10 14:46:45 +00:00
os: osx
osx_image: xcode11.2 # py3.7
language: shell
env: TOXENV=py37
2019-11-10 11:51:47 +00:00
- stage: check
name: style
2019-11-10 12:14:02 +00:00
python: 3.7
2019-10-31 19:16:39 +00:00
env: TOXENV=flake8
- name: setup
2019-11-10 12:14:02 +00:00
python: 3.7
2019-10-31 19:16:39 +00:00
env: TOXENV=setup.py
- name: perf
2019-11-10 12:14:02 +00:00
python: 3.7
2019-10-31 19:16:39 +00:00
env: TOXENV=perf
2019-11-10 11:51:47 +00:00
- stage: deploy
name: PyPI and GitHub
2019-10-31 19:16:39 +00:00
python: 3.7
install:
script:
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-11-09 00:45:54 +00:00
- git log --pretty='format:- %s%n%b---' $(git tag --sort=creatordate | tail -n2 | head -n1)..HEAD > CHANGES.md
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-*
2019-11-09 01:19:36 +00:00
skip_cleanup: true
2019-03-02 01:35:09 +00:00
on:
tags: true
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/tqdm-*.whl*
2019-11-09 01:19:36 +00:00
skip_cleanup: true
2019-03-02 01:35:09 +00:00
draft: true
2019-05-13 17:19:14 +00:00
name: tqdm $TRAVIS_TAG stable
2019-11-09 00:45:54 +00:00
edge: true
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
2019-11-09 00:45:54 +00:00
release_notes_file: CHANGES.md
2019-03-02 01:35:09 +00:00
on:
tags: true
2019-10-31 20:06:22 +00:00
- name: docker
python: 3.7
services:
- docker
install:
script:
- echo "$DOCKER_PWD" | docker login -u $DOCKER_USR --password-stdin
- echo "$GITHUB_TOKEN" | docker login docker.pkg.github.com -u $GITHUB_USR --password-stdin
- make -B docker
- |
if [[ -n "$TRAVIS_TAG" ]]; then
docker tag tqdm/tqdm:latest tqdm/tqdm:${TRAVIS_TAG#v}
docker tag tqdm/tqdm:latest docker.pkg.github.com/tqdm/tqdm/tqdm:${TRAVIS_TAG#v} ; fi
- docker tag tqdm/tqdm:latest tqdm/tqdm:devel
- 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
deploy:
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
2019-03-01 21:19:48 +00:00
- name: snap
python: 3.7
addons:
2019-11-21 02:38:13 +00:00
snaps:
- name: snapcraft
channel: stable
confinement: classic
- name: lxd
channel: stable
env:
- SNAPCRAFT_IMAGE_INFO: '{"build_url": "$TRAVIS_BUILD_URL"}'
before_install:
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
2019-03-01 21:19:48 +00:00
install:
2019-11-21 02:38:13 +00:00
- make snapcraft.yaml
2019-03-01 21:19:48 +00:00
script:
2019-11-21 02:38:13 +00:00
- sudo snapcraft --use-lxd
after_failure:
- sudo journalctl -u snapd
2019-03-01 21:19:48 +00:00
deploy:
- provider: snap
snap: tqdm*.snap
2019-11-23 02:20:14 +00:00
channel: stable
skip_cleanup: true
on:
tags: true
- provider: snap
snap: tqdm*.snap
channel: candidate
2019-03-01 21:19:48 +00:00
skip_cleanup: true
2019-03-02 00:00:59 +00:00
- provider: snap
snap: tqdm*.snap
2019-11-21 22:17:03 +00:00
channel: edge
2019-03-02 00:00:59 +00:00
skip_cleanup: true
on:
2019-11-21 22:24:48 +00:00
branch: devel
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-11-10 14:45:53 +00:00
- pip install tox
- pip install .
2015-04-16 22:49:46 +00:00
script:
2019-11-10 14:45:53 +00:00
- tox