-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml
46 lines (42 loc) · 1.39 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
language: node_js
node_js:
- "lts/*"
install:
- npm ci
jobs:
include:
- stage: tests
addons:
chrome: stable
before_install:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
script:
- npm run markdownlint
- stage: build and deploy
script:
- npm run build
before_deploy:
- export PRERELEASE=$(bash ./.publish_scripts/is_prerelease_version.sh ${TRAVIS_TAG})
deploy:
- provider: script
script: ./.publish_scripts/publish_on_branch.sh -b ${TRAVIS_BRANCH}
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(([0-9]+\.[0-9]+\.x)|(develop))$
- provider: script
script: ./.publish_scripts/publish_on_tag.sh -v ${TRAVIS_TAG}
skip_cleanup: true
on:
repo: polimediaupv/paella
tags: true
- provider: releases
skip_cleanup: true
api_key:
secure: UI6zIHGkhy7p/OtViLbi1yxuyYPteAoRGFO7D8xhc8N6YAkzxYFmlTHdUQgFj4Hgh+5gO6/jW9kpTkbkbATSIVLOLcuLyJEq6jDuorM2q8D2VInpc5ZpNddFjiQdKaIkZL8CeBnncKvmxCBZeHgE4MQPOGHtCQ900viROEVY0ak=
file:
- ${HOME}/prebuilt/paella-prebuilt-${TRAVIS_TAG}.tar.gz
prerelease: ${PRERELEASE}
on:
repo: polimediaupv/paella
tags: true