diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-07-20 23:44:45 +0200 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2019-07-21 00:43:06 +0200 |
commit | 323b8c9f65b1561162b3b460cdee48f0d9c6b66c (patch) | |
tree | fffdf61da1a21dd51ae0cc856dd2836e45d76624 | |
parent | 2e42e289efbf24fb6fd85df45b56a875875b6932 (diff) | |
download | gitlab-chore/move-back-to-travis.tar.gz |
chore: move checks back to travischore/move-back-to-travis
-rw-r--r-- | .travis.yml | 80 |
1 files changed, 79 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 0a38cfa..742eed9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ sudo: required +dist: bionic services: - docker language: python -python: 2.7 env: #- TOX_ENV=py_func_v4 - TOX_ENV=cli_func_v4 @@ -10,3 +10,81 @@ install: - pip install tox script: - tox -e $TOX_ENV + +git: + depth: false + +before_install: + - sudo apt-get update + - sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ + libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ + tk-dev libffi-dev liblzma-dev python-openssl git + +stages: + - lint + - build-test-image + - test + - deploy + +jobs: + include: + - stage: lint + name: commitlint + script: + - npm install -g @commitlint/cli @commitlint/config-conventional + - 'echo "module.exports = {extends: [\"@commitlint/config-conventional\"]}" > commitlint.config.js' + - npx commitlint --from=origin/master + - stage: lint + name: black_lint + script: + - pip3 install black + - black --check . + - stage: test + name: cli_func_v4 + script: + - pip3 install tox + - tox -e cli_func_v4 + - stage: test + name: py27 + script: + - pyenv install 2.7. + - pip3 install tox + - tox -e py27 + - stage: test + name: py34 + script: + - pyenv install 3.4.7 + - pip3 install tox + - tox -e py34 + - stage: test + name: py35 + script: + - pyenv install 3.5.4 + - pip3 install tox + - tox -e py35 + - stage: test + name: py36 + python: 3.6 + script: + - pyenv install 3.6.3 + - pip3 install tox + - tox -e py36 + - stage: test + name: py37 + python: 3.7 + script: + - pip3 install tox + - tox -e py37 + - stage: test + name: py38 + python: 3.8-dev + script: + - pip3 install tox + - tox -e py38 + +deploy: + provider: pypi + user: $TWINE_USERNAME + password: $TWINE_PASSWORD + on: + tags: true |