-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 1.04 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
language: node_js
node_js:
- "10"
stages:
- lint
- test
- build
jobs:
include:
- stage: lint
name: "Lint"
if: type = push
script:
- npm run lint
- stage: test
name: "Tests"
if: branch IN (develop, master) AND type = pull_request
script: npm run test
# - stage: build
# name: "Build Artifacts"
# if: (branch = master OR branch = develop) AND type = push
# addons:
# artifacts:
# working_dir: build/zip/
# paths:
# - echo_bridge.zip
# script:
# - npm run build-ext
# - "echo \"Download URL: https://${ARTIFACTS_BUCKET}.s3.amazonaws.com/echoprotocol/bridge-extension/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/echo_bridge.zip\""
- stage: build
name: "Build Tag Artifacts"
if: tag IS present
script:
- npm run build-ext
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: build/zip/echo_bridge.zip
skip_cleanup: true
on:
tags: true