forked from apiaryio/dredd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (60 loc) · 1.86 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
language: "node_js"
node_js: "10"
cache:
directories:
- "node_modules"
before_install:
- "npm install npm@6 --global"
install:
- "npm install --no-save"
jobs:
include:
################################# Stage 1 #################################
- stage: "quality checks & tests"
env: "JOB=quality_checks"
before_install:
- "npm install npm@6 --global"
- "pyenv install 3.6.3"
- "pyenv global 3.6.3"
- "pip install pip --upgrade"
install:
- "npm install --no-save"
- "pip install --user -r docs/requirements.txt"
script: "npm run ci:lint"
# It's just dry run, because production build happens directly on
# the ReadTheDocs infrastructure
- env: "JOB=docs_build_dry_run"
before_install:
- "npm install npm@6 --global"
- "pyenv install 3.6.3"
- "pyenv global 3.6.3"
- "pip install pip --upgrade"
install:
- "npm install --no-save"
- "pip install --user -r docs/requirements.txt"
script: "npm run ci:docs"
- env: "JOB=node8"
node_js: "8"
script: "npm run ci:test"
- env: "JOB=node10"
script: "npm run ci:test"
- env: "JOB=node12"
node_js: "12"
script: "npm run ci:test"
- env: "JOB=e2e_apib"
script: "npm run e2e:apib"
- env: "JOB=e2e_openapi2"
script: "npm run e2e:openapi2"
- env: "JOB=smoke_tests"
services:
- "mongodb"
cache: {}
before_install: []
install: []
script: "npm run ci:smoke"
################################# Stage 2 #################################
# The GH_TOKEN and NPM_TOKEN environment variables are expected to be set
# in https://travis-ci.org/apiaryio/dredd/settings
- stage: "semantic release"
script: "npm run ci:release"
if: fork = false AND branch = master AND type = push