-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.travis.yml
More file actions
executable file
·47 lines (41 loc) · 935 Bytes
/
.travis.yml
File metadata and controls
executable file
·47 lines (41 loc) · 935 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
35
36
37
38
39
40
41
42
43
44
45
46
47
conditions: v1
sudo: required
dist: xenial
language: node_js
node_js:
- '12'
addons:
chrome: stable
services:
- xvfb
cache:
directories:
- node_modules
before_install:
- export DISPLAY=:99.0
- chmod +x ./scripts/travis.sh
script: ./scripts/travis.sh
stages:
- Tests
- Release
jobs:
fast_finish: true
include:
# https://docs.travis-ci.com/user/build-stages/deploy-github-releases/
- stage: Release
name: 'Releasing a new version'
env: TRAVIS_MODE=release
if: tag IS present
deploy:
- provider: releases
api_key: $GH_TOKEN
file_glob: true
file: _dist/*.zip
skip_cleanup: true
on:
tags: true
# Required tests
- stage: Tests
if: ((branch = master) OR (tag IS present) OR (type = pull_request)) AND commit_message !~ /^chore\(release\)/
name: 'Running build'
env: TRAVIS_MODE=build