Skip to content

Commit

Permalink
Use dappnode preset
Browse files Browse the repository at this point in the history
  • Loading branch information
vdo committed Jun 13, 2019
1 parent e05ed39 commit 26ca51d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 54 deletions.
57 changes: 6 additions & 51 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,56 +12,11 @@ sudo: required
# - "release/major"
# ########################

stages:
- name: build-test
if: tag !~ /^release\/(major|minor|patch)$/
- name: release
if: tag =~ /^release\/(major|minor|patch)$/

jobs:
include:
# Test that it builds correctly
###############################
- stage: build-test
name: build-test
services:
- docker
script:
- docker-compose build

# Deploy stage
# - code below is common between DAppNode packages
##################################################
- stage: release
name: release
services:
- docker
script:
- npm install -g @dappnode/dappnodesdk
- docker-compose build
- "TYPE=${TRAVIS_TAG##*/}"
- "[ ! '$TYPE' = 'release' ] || TYPE='patch'"
- dappnodesdk publish ${TYPE} -p infura -a ${DEV}
node_js:
- "10.15.3"
before_deploy:
- wget https://raw.githubusercontent.com/dappnode/DAppNode/master/scripts/before_deploy.sh
- source before_deploy.sh
deploy:
provider: releases
prerelease: true
overwrite: true
api_key: "$GITHUB_TOKEN"
file_glob: true
# $RELEASE_VERSION is exported on before_deploy.sh
file: build_${RELEASE_VERSION}/*
skip_cleanup: true
# $TRAVIS_TAG is exported on before_deploy.sh
name: "$TRAVIS_TAG"
body: "# Changelog"
on:
tags: true
condition: "$TRAVIS_TAG = release || $TRAVIS_TAG = release/patch || $TRAVIS_TAG = release/minor || $TRAVIS_TAG = release/major"
after_deploy:
- wget https://raw.githubusercontent.com/dappnode/DAppNode/master/scripts/after_deploy.sh
- source after_deploy.sh
- script: docker-compose build
if: tag !~ ^release
- stage: deploy
node_js: lts/*
if: tag =~ ^release
script: npx @dappnode/dappnodesdk publish --dappnode_team_preset
6 changes: 3 additions & 3 deletions dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
],
"homepage": {
"WebApplication": "http://raiden-testnet.dappnode/",
"homepage": "https://github.com/dappnode/DAppNodePackage-raiden#readme"
"homepage": "https://github.com/dappnode/DAppNodePackage-raiden-testnet#readme"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dappnode/DAppNodePackage-raiden.git"
"url": "https://github.com/dappnode/DAppNodePackage-raiden-testnet.git"
},
"bugs": {
"url": "https://github.com/dappnode/DAppNodePackage-raiden/issues"
"url": "https://github.com/dappnode/DAppNodePackage-raiden-testnet/issues"
},
"license": "GPL-3.0",
"dependencies": {
Expand Down

0 comments on commit 26ca51d

Please sign in to comment.