language: python python: - '2.7' - '3.5' - '3.6' - '3.7' dist: xenial cache: pip jobs: include: - python: '3.6' env: TOXENV=docs - python: '3.7' env: TOXENV=djmaster - python: '3.7' env: TOXENV=lint - stage: publish python: '3.6' before_script: # workaround for Travis' inability to build PEP517 projects; anything added to build-system.requires # will also have to be added here until Travis implements this - pip install setuptools-scm script: skip env: PYPI_DEPLOY=true deploy: &pypi provider: pypi user: cvijdea password: secure: 54DvknusZ7uHlo9IJxgbNDVKYrwaScyuOZyAGZPb/PTUj8WroQZtp1bFOrAtzfcM4ctIIoLWVzmSwrxypmU4hNif2ZvJ8Vo2PnVh9G6wQ2fD2FN+kFBYczBNrzW5xhjJ53OiTYy/zzHgzxC/sp+hB4sibWl0v69PGU5v6oyBltOWZLXYpqMA6fINt62XDVwuNHVKAo1T/yoeJMQKeCKYAx8QOtve9/qcl5Td/OOM6z42hX5+q3N7RgkCFLl0KopwaPwBaL1Z3Bn+aUhiIUdrRrdigY329QtNXoa/VRBNvUSAwbvecShmgl3c9HigL2ZWmtmHaXda6YCdqmbVfSHSEDsn4AwhZ3A9WblbRtuBwP79YKiE+4BLmgLlGGA4IrAKr3woe+078q/bGqBzmeDd+jt72hhibzD5B96zo4tSNksSxSJGwMYH988fBN/ppynrzRvO0sR/THwpb0r42era8tRd3ZVBefloVas/nQZZs4+zMYoO0fbaLDXdkfaxsF5/X6WkwTYjbI3tdapUT6lYXwi1eKUM1ZGsfKpuq0lFa3qxevYBKveWStQwGyJz1KhVUHbo3OrA3U6q9yoqpzhcZBhzGAPSgumi+EkBUj69cymlYkmqXVBn4VnWsdeFefNYE6Kvh/HJEDPDaWSNgfVLN9xWVqJqM7QiWA351W9dRZA= on: tags: true distributions: "sdist bdist_wheel" allow_failures: - env: TOXENV=lint - env: TOXENV=djmaster fast_finish: true install: - python -m pip install -U pip setuptools - pip install -r requirements/ci.txt before_script: - coverage erase script: - tox after_success: - | if [[ -z "$TOXENV" && -z "$PYPI_DEPLOY" ]]; then coverage combine || true coverage report codecov fi branches: only: - master - /^v?\d+\.\d+(\.\d+)?(-?\S+)?$/ stages: - test - name: publish if: tag IS present notifications: email: on_success: always on_failure: always