Skip to content

Commit

Permalink
chore: make sure we're using Python 3.6 (aligned with ReadTheDocs)
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Oct 18, 2018
1 parent 706599c commit 5d41df7
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
sudo: false
dist: "trusty"
language: "node_js"
addons:
apt:
packages:
- "python3"
- "python3-pip"
node_js:
- "10"
cache:
directories:
- "node_modules"
Expand All @@ -16,30 +13,28 @@ before_install:
# so 'conventional-changelog-lint' could compare commits and lint them: marionebl/conventional-changelog-lint#7
- "git remote set-branches origin master && git fetch && git checkout master && git checkout -"
- "npm -g install npm@6"
- "pip3 install --user -r docs/requirements.txt"
install: "npm install --no-optional"
- "pyenv global 3.6"
install:
- "npm install --no-optional"
- "pip install --user -r docs/requirements.txt"
jobs:
include:
# stage 1, all following runs in parallel:
- stage: "quality checks & tests"
env: "JOB=quality_checks"
node_js: "10"
script: "npm run lint && npm run docs:lint"
- node_js: "10"
env: "JOB=docs_build_dry_run" # why dry run? because production build happens directly on ReadTheDocs infrastructure
- env: "JOB=docs_build_dry_run" # why dry run? because production build happens directly on ReadTheDocs infrastructure
script: "npm run docs:build"
- node_js: "6"
env: "JOB=node6"
- env: "JOB=node6"
node_js: "6"
script: "npm run test:coverage && npm run coveralls"
- node_js: "8"
env: "JOB=node8"
- env: "JOB=node8"
node_js: "8"
script: "npm run test:coverage && npm run coveralls"
- node_js: "10"
env: "JOB=node10"
- env: "JOB=node10"
script: "npm run test:coverage && npm run coveralls"

# stage 2
- stage: "semantic release"
node_js: "10"
script: "npm run semantic-release || true"
if: fork = false AND branch = master AND type = push

0 comments on commit 5d41df7

Please sign in to comment.