mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 09:51:58 +00:00
Autodeploy built standalone binaries for all platforms to github
Change-Type: minor
This commit is contained in:
parent
2c9b80c177
commit
08de0938a0
36
.travis.yml
36
.travis.yml
@ -1,22 +1,28 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
matrix:
|
os:
|
||||||
include:
|
- linux
|
||||||
- node_js:
|
- osx
|
||||||
- '6'
|
node_js:
|
||||||
env:
|
- "6"
|
||||||
- CAN_DEPLOY=true
|
|
||||||
before_install:
|
before_install:
|
||||||
- npm -g install npm@4
|
- npm -g install npm@4
|
||||||
script: npm run ci
|
script: npm run ci
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
deploy:
|
deploy:
|
||||||
provider: npm
|
- provider: script
|
||||||
email: accounts@resin.io
|
script: npm run release
|
||||||
api_key:
|
skip_cleanup: true
|
||||||
secure: phet6Du13hc1bzStbmpwy2ODNL5BFwjAmnpJ5wMcbWfI7fl0OtQ61s2+vW5hJAvm9fiRLOfiGAEiqOOtoupShZ1X8BNkC708d8+V+iZMoFh3+j6wAEz+N1sVq471PywlOuLAscOcqQNp92giCVt+4VPx2WQYh06nLsunvysGmUM=
|
on:
|
||||||
skip_cleanup: true
|
tags: true
|
||||||
on:
|
condition: "$TRAVIS_TAG =~ ^v?[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+"
|
||||||
tags: true
|
repo: resin-io/resin-cli
|
||||||
condition: "$CAN_DEPLOY = 'true' && $TRAVIS_TAG =~ ^v?[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+"
|
- provider: npm
|
||||||
repo: resin-io/resin-cli
|
email: accounts@resin.io
|
||||||
|
api_key:
|
||||||
|
secure: phet6Du13hc1bzStbmpwy2ODNL5BFwjAmnpJ5wMcbWfI7fl0OtQ61s2+vW5hJAvm9fiRLOfiGAEiqOOtoupShZ1X8BNkC708d8+V+iZMoFh3+j6wAEz+N1sVq471PywlOuLAscOcqQNp92giCVt+4VPx2WQYh06nLsunvysGmUM=
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
condition: "$TRAVIS_TAG =~ ^v?[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+"
|
||||||
|
repo: resin-io/resin-cli
|
||||||
|
34
appveyor.yml
Normal file
34
appveyor.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# appveyor file
|
||||||
|
# http://www.appveyor.com/docs/appveyor-yml
|
||||||
|
|
||||||
|
init:
|
||||||
|
- git config --global core.autocrlf input
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- C:\Users\appveyor\.node-gyp
|
||||||
|
- '%AppData%\npm-cache'
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
|
||||||
|
# what combinations to test
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- nodejs_version: 6
|
||||||
|
|
||||||
|
install:
|
||||||
|
- ps: Install-Product node $env:nodejs_version x64
|
||||||
|
- npm install -g npm@4
|
||||||
|
- set PATH=%APPDATA%\npm;%PATH%
|
||||||
|
- npm install
|
||||||
|
|
||||||
|
build: off
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- node --version
|
||||||
|
- npm --version
|
||||||
|
- cmd: npm test
|
||||||
|
|
||||||
|
deploy_script:
|
||||||
|
- IF "%APPVEYOR_REPO_TAG%" == "true" (npm run release)
|
||||||
|
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" (echo 'Not tagged, skipping deploy')
|
Loading…
x
Reference in New Issue
Block a user