.travis.yml
language: python
dist: bionic
sudo: true
python: 3.6
stages:
- lint
- test
- test-docs
- test-docker
- deploy
script:
- coverage run --include '*/site-packages/pacifica/cartd/*' -m pytest -xsv tests/test tests/e2e
- coverage report -m --fail-under 100
before_install:
- pip install --upgrade pip setuptools wheel
- pip install ansible
- ansible-galaxy install pacifica.ansible_pacifica pacifica.ansible_travis
- ansible-playbook ~/.ansible/roles/pacifica.ansible_travis/molecule/common/playbook.yml -i ~/.ansible/roles/pacifica.ansible_travis/molecule/common/inventory.yml -e "travis_virtualenv=python${TRAVIS_PYTHON_VERSION} github_repository=cartd"
- pip freeze
before_script:
- pip freeze
jobs:
include:
- stage: lint
before_script: skip
script: pre-commit run -a
- python: 3.7
before_script: skip
script: pre-commit run -a
- python: 3.8
before_script: skip
script: pre-commit run -a
- stage: test
- python: 3.7
- python: 3.8
- stage: test-docs
python: 3.8
before_script: skip
script: >
cd docs;
sphinx-build -T -E -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html;
sphinx-build -T -b readthedocssinglehtmllocalmedia -d _build/doctrees-readthedocssinglehtmllocalmedia -D language=en . _build/localmedia;
sphinx-build -b latex -D language=en -d _build/doctrees . _build/latex;
sphinx-build -T -b epub -d _build/doctrees-epub -D language=en . _build/epub
- stage: test-docker
sudo: required
before_install: skip
python: 3.8
services:
- docker
script: >
docker-compose build --pull;
docker-compose up -d;
cd tests;
python -m unittest docker_test.BasicCartTests;
python -m unittest docker_test.RunCartTests
- stage: deploy
language: python
script: skip
before_script: skip
python: 3.8
deploy:
skip_cleanup: true
provider: pypi
user: dmlb2000
distributions: sdist bdist_wheel
password:
secure: XOS7c9h0d+WOQjGFgTSKnOK1jQQ1Rva0p0dtDXsoT58HMtpmdk/XHTdQeZZkBUlZ5FjjBlm6NRPQv/ZEoT8maRwOLBZpVsLp98DZjM84wNE7lxM3m3VxWbKHdMni5ZXKGKnU15u3WxA12FTjvMMUiwkDCi3sOeuOaFSS88QzZ3eL02/aOYc+/6ebUVjoU8yP7fU5u0wSK/9Ch/ne84liN0pxf+MlTWacYw4yvX1Wl2eKRmFta+PyXrJLsyJ5GKIhenP6uj2qvA06WH+O3AaaPr34/ZVCMxABmG/jp8qa/FmQwiXBZ9tfzNvBZclEaRpwjml6cMnSa1SC0G+qX1k6THdQAp2sSl4Gsl6HKLOQ7cDANKkHMDswjIFBqtFyokpVx6++6YaN/+KhWgYhh/vIITFxL972UE+aQMnSCbW+QPs0ljq2eyyErnpd4d4vV3SR4p71xBmJW/xmP6OdJChPMFv+wyzLFSe7f2eBBucFT/b3msci+NMwexZiCRs8/9/fRQ+s4hqHd69ofFfQfXE3UZxxF3Pc42whIdJ8v3xAtPkfZ3iEG8Gf4HuHqHvcMkMhmFL/2jD/fj3LYf3GqvC94I8GaZXvQ9EvJmqA6hDvoqFc6UokZ22rn//gmXNFrQz9/kdXdQOfgBNHq2rCiqp6JccR6Roty5hq0ZDxqQ0Q3fM=
on:
tags: true
install:
- pip install .
- pip install -r requirements-dev.txt
- python setup.py egg_info