-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
47 lines (44 loc) · 1.18 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
sudo: required
language: node_js
node_js:
- "10"
- "12"
jobs:
include:
- stage: Lint
script: npm run lint
- stage: Audit
script: npm audit --production
- stage: Npm release
node_js: "10"
script:
- echo "Deploying to npm ..."
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
on:
tags: true
- stage: Github release
before_install:
- npm install -g [email protected]
script:
- nexe -i bridge-cli -t linux-x64 -o bridge-cli.$TRAVIS_TAG.linux-x64 -r ./
- nexe -i bridge-cli -t win32-x64-6.11.2 -o bridge-cli.$TRAVIS_TAG.win-x64.exe -r ./
deploy:
provider: releases
api_key: $GH_TOKEN
skip_cleanup: true
overwrite: true
file:
- bridge-cli.$TRAVIS_TAG.linux-x64
- bridge-cli.$TRAVIS_TAG.win-x64.exe
on:
tags: true
stages:
- name: Lint
- name: Test
- name: Npm release
if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/bridgejs
- name: Github release
if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/bridgejs