This repository has been archived by the owner on May 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (61 loc) · 1.79 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
dist: bionic
language: node_js
node_js:
- 12
- lts/*
- node
services:
- docker
env:
global:
- DEV_BRANCH=dev
- RELEASE_BRANCH=main
- POST_RELEASE_BRANCH=main
- RELEASE_MESSAGE=release
cache:
directories:
- "node_modules"
- .eslintcache
before_script:
- . ./travis/node-functions.sh
- VERSION="$(node_load_version)"
- log_env_variables
script:
- npm run build
- npm run test:cov
# - npm run coveralls-report MOVE from Coveralls TO Sonar
jobs:
include:
- stage: test
name: docs
script: npm run doc
- stage: test
name: vector
script: npm run test:vector
if: (branch = env(DEV_BRANCH) OR branch = env(RELEASE_BRANCH)) AND (type = push OR type = api)
- stage: test
name: lint
script: npm run lint
- name: e2e
script: npm run e2e
if: (branch = env(DEV_BRANCH) AND type = cron) OR (commit_message = e2e)
- stage: publish
name: github alpha pages
script: node_push_github_pages
if: branch = env(DEV_BRANCH) AND type = push
# Alpha AND Release disabled, We don't want to push to NPM yet.
# - name: alpha npm
# script: npm run build && node_publish_alpha
# if: branch = env(DEV_BRANCH) AND type = push
# - stage: release
# name: release npm
# script: npm run build && node_publish_release
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
# - stage: release
# name: github release pages
# script: node_push_github_pages
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
# - stage: post release
# name: tag and version upgrade
# script: node_post_release
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)