forked from asciidoctor/asciidoctor.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (47 loc) · 1003 Bytes
/
.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
dist: trusty
conditions: v1
language: node_js
addons:
chrome: stable
env:
- ASCIIDOCTOR_CORE_VERSION=v2.0.9
- ASCIIDOCTOR_CORE_VERSION=master
node_js:
- 'lts/*'
- 'node'
jdk:
- oraclejdk8
install:
- npm ci
- npm ci --prefix packages/core
# keep the npm cache around to speed up installs
cache:
directories:
- "$HOME/.npm"
script:
- npm run lint
- npm run test
- npm run travis --prefix packages/core
jobs:
include:
- stage: release
if: |
repo = 'asciidoctor/asciidoctor.js' AND \
tag IS present
script:
- ./scripts/package.sh
- ./scripts/publish.sh
deploy:
- provider: releases
api_key: ${GITHUB_TOKEN}
file: packages/core/bin/asciidoctor.js.dist.*
skip_cleanup: true
file_glob: true
on:
tags: true
- stage: notify
if: |
repo = 'asciidoctor/asciidoctor.js' AND \
branch = master AND \
type = 'push'
script: ./scripts/notify.sh