Skip to content

Commit

Permalink
ci: Fix job failing
Browse files Browse the repository at this point in the history
Fixes job failing due to old python version,
Set default python version to 3.9
node_js for semantic release is now installed with nvm instead
  • Loading branch information
coolapso committed Nov 23, 2021
1 parent 2c81501 commit 2a8ee92
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
os: linux
dist: focal
language: python
python:
- "3.9"
services:
- docker
language: python

stages:
- test
Expand All @@ -14,25 +16,31 @@ jobs:
- stage: test
name: "Test"
if: type = pull_request
before_install:
- python -V
install:
- pip install mkdocs-material
before_script:
- mkdocs --version
script:
- mkdocs build

- stage: "publish"
name: "publish"
if: branch = master
language: node_js
node_js:
- 17
env:
- IMAGE=pivpn/docs
before_install:
- nvm install 17
- python -V
- node -v
install:
- pip install mkdocs-material
- npm install @semantic-release/github -D
- npm install @semantic-release/changelog -D
- npm install @semantic-release-plus/docker -D
before_script:
- mkdocs --version
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
script:
- mkdocs build
Expand Down

0 comments on commit 2a8ee92

Please sign in to comment.