-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (49 loc) · 1.01 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
dist: trusty
sudo: false
language: node_js
node_js:
- 12.0
addons:
chrome: stable
cache:
directories:
- "./node_modules"
install:
- npm install
jobs:
include:
- stage: Test Library
script:
- npm run test cookie-service -- --no-watch --no-progress --browsers=ChromeHeadless
- stage: Npm Release
node_js: 12.0
script:
- echo "Deployig to NPM..."
- npm run build-lib
- npm run copy-readme
before_deploy:
- cd dist/cookie-service
deploy:
provider: npm
skip_cleanup: true
email: owner_mail
api_key: $NPM_AUTH_TOKEN
local_dir: dist/cookie-service
on:
tags: true
all_branches: true
- stage: Deploy docs
node_js: 12.0
script:
- echo "Deploying to gh Page..."
- npm run build-docs
deploy:
provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
keep_history: true
local_dir: dist/cookie-consent
fqdn: cookie-consent.org
on:
tags: true
branch: master