-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
77 lines (73 loc) · 1.85 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# travis.yml
language: ruby
os: linux
dist: xenial
stages:
- pre-commit
- name: commitlint
if: (branch = master OR branch = dev) AND type = push AND fork = false
- deploy docs
- name: release
if: branch = master AND type = push AND fork = false
- name: release-dry-run
if: branch = dev AND type = push AND fork = false
jobs:
include:
- language: python
python: 3.8
stage: pre-commit
name: "Pre-commit run"
script: pre-commit run --all-files
install:
- pip3 install pre-commit
- language: node_js
node_js: node
stage: commitlint
name: "Master commitlint"
script:
- commitlint-travis
- language: python
python: 3.8
stage: deploy docs
name: "Deploy MKDocs to GH-Pages"
install:
- pip3 install mkdocs
- pip3 install mkdocs-material
- pip3 install mkdocs-git-revision-date-localized-plugin
- curl https://pre-commit.com/install-local.py | python -
- bash vlab ci
script: mkdocs build --verbose --clean --strict
deploy:
fqdn: docs.vivumlab.com
strategy: git
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN # Set in travis-ci.org dashboard
local_dir: site
on:
branch: master
- language: python
sudo: required
services:
- docker
stage: release
name: "Release"
before_install:
- nvm install 12
- npm install
script:
- npx semantic-release
- language: python
sudo: required
services:
- docker
stage: release-dry-run
name: "Release Dry-Run"
before_install:
- nvm install 12
- npm install
script:
- npx semantic-release --branches dev --dry-run
cache:
directories:
- $HOME/.cache/pre-commit