-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (32 loc) · 785 Bytes
/
.travis.yml
File metadata and controls
34 lines (32 loc) · 785 Bytes
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
sudo: false
language: node_js
node_js:
- "12"
cache:
directories:
- node_modules
stages:
- check
- name: cover
if: branch = master AND type = push
- name: versioning
if: branch = master AND type = push
- name: publish
if: tag IS present AND tag =~ ^v
jobs:
include:
- stage: check
script:
- npm run lint
- npm run test
- stage: cover
script:
- npm run test:cover
- bash <(curl -s https://codecov.io/bash) -t "${CODECOV_TOKEN}" -f coverage/*.json
- stage: versioning
script:
- npm install -g @priestine/semantics
- priestine-semantics --private-token=${SEMANTICS_TOKEN} --project-path=Raini-js/switch --prefix=v
- stage: publish
script:
- bash deploy_npm.sh