forked from dowjones/react-dropdown-tree-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.22 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
language: node_js
cache:
yarn: true
directories:
- node_modules
git:
depth: 3
jobs:
include:
- stage: test
node_js: '10'
install:
- yarn install --ignore-engines
script:
- yarn lint:nofix
- yarn coveralls
branches:
except:
- /^v\d+\.\d+\.\d+$/
# Define the release stage that runs semantic-release
- stage: release
if: (NOT type IN (pull_request)) AND (branch = master)
node_js: '10'
# overwrite default `script` step to skip the tests
script: echo "Deploying to npm ..."
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
- stage: docs
if: (NOT type IN (pull_request)) AND (branch = develop)
node_js: '10'
# un-ignore bundle.js
before_deploy: mv docs/.gitignore .gitignore
# overwrite default `script` step to skip the tests
script: yarn build:docs
deploy:
provider: pages
skip-cleanup: true
github-token: $GH_PAGES_TOKEN # Set in the settings page of the repository, as a secure variable
keep-history: true
local-dir: docs
verbose: true
on:
branch: develop