-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
47 lines (44 loc) · 1.16 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:
- "8"
- "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 nexe@3.3.2
script:
- nexe -i tomox-cli -t linux-x64 -o tomox-cli.$TRAVIS_TAG.linux-x64 -r ./
- nexe -i tomox-cli -t darwin-x64 -o tomox-cli.$TRAVIS_TAG.darwin-x64 -r ./
deploy:
provider: releases
api_key: $GH_TOKEN
skip_cleanup: true
overwrite: true
file:
- tomox-cli.$TRAVIS_TAG.linux-x64
- tomox-cli.$TRAVIS_TAG.darwin-x64
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/tomoxjs
- name: Github release
if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/tomoxjs