Skip to content

Commit

Permalink
Deploy only on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
agmangas committed Apr 22, 2021
1 parent 2b8e49b commit dccc984
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
language: python
dist: focal
services:
- docker
- docker
python:
- '2.7'
- '3.6'
- '3.7'
- '3.8'
- "2.7"
- "3.6"
- "3.7"
- "3.8"
env:
- WOTPY_TESTS_MQTT_BROKER_URL=mqtt://localhost
- WOTPY_TESTS_MQTT_BROKER_URL=mqtt://localhost
before_install:
- docker run -d -p 1883:1883 --name broker eclipse-mosquitto:1.6
- docker ps -a
- docker run -d -p 1883:1883 --name broker eclipse-mosquitto:1.6
- docker ps -a
install:
- pip install -U .[tests]
- pip install -U .[tests]
script:
- travis_retry pytest -sv --disable-warnings --cov=wotpy
- travis_retry pytest -sv --disable-warnings --cov=wotpy
jobs:
include:
- stage: docs
python: '3.7'
python: "3.7"
name: "Deploy docs to GitHub Pages"
script: skip
before_deploy: cd ./docs/ && make html && cd ..
Expand All @@ -41,7 +41,8 @@ deploy:
on:
tags: true
branch: master
condition: $TRAVIS_PYTHON_VERSION != 2.7
distributions: "sdist bdist_wheel"
skip_existing: true
after_success:
- coveralls
- coveralls

0 comments on commit dccc984

Please sign in to comment.