-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (28 loc) · 758 Bytes
/
.travis.yml
File metadata and controls
32 lines (28 loc) · 758 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
language: node_js
node_js:
- "12"
install:
- npm install -g surge
- npm install --force-online
- npm install --only=dev --force-online
jobs:
include:
- stage: Release
if: branch = master AND NOT type = pull_request
before_install:
- set -e
- 'if [ ! -z $(git tag --points-at $TRAVIS_COMMIT) ]; then travis_terminate 0; fi'
script:
- make release
- stage: Deploy PRO
if: branch = master AND NOT type = pull_request
before_install:
- set -e
- 'if [ -z $(git tag --points-at $TRAVIS_COMMIT) ]; then travis_terminate 0; fi'
install:
- npm install -g surge
- npm ci --dev
env:
- NODE_ENV=production
script:
- make deploy