-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
49 lines (45 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
os: linux
dist: focal
language: python
python:
- "3.9"
services:
- docker
stages:
- test
- name: "release"
if: type = push
jobs:
include:
- 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
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
- docker build -t $IMAGE .
- npx semantic-release