-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
52 lines (51 loc) · 1.38 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
language: node_js
cache:
directories:
- ~/.npm
node_js:
- '10'
notifications:
email: true
slack: desaintsteban:125X1HaXM6puZdd87s3eFc0s
branches:
except:
- /^v\d+\.\d+\.\d+$/
install:
- yarn
jobs:
include:
- stage: Build library
script:
- cd $TRAVIS_BUILD_DIR/
- travis_wait yarn run test
- yarn run compile
- stage: deploy gihub page
script:
- cp README.md src/assets/README.md
- yarn run build
- cp docs/index.html docs/404.html
deploy:
provider: pages
skip_cleanup: true
local_dir: ./docs # or remove this line to upload from root of repo
github_token: $GH_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
# Define the release stage that runs semantic-release
- stage: release
node_js: lts/*
script:
- cd $TRAVIS_BUILD_DIR/
- yarn run compile
- yarn run compile:datasource
- cp README.md dist/akita-filters-plugin/README.md
- cp LICENSE.md dist/akita-filters-plugin/LICENSE.md
# Advanced: optionally overwrite your default `script` step to skip the tests
# script: skip
deploy:
provider: script
skip_cleanup: true
script: npx semantic-release
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|beta|next|next-major)$