-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
language: node_js | ||
dist: trusty | ||
sudo: required | ||
|
||
stages: | ||
- name: build-test | ||
if: tag != "release" | ||
- name: release | ||
if: tag = "release" | ||
|
||
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 | ||
- dappnodesdk publish patch -p infura -a $DEV | ||
node_js: lts/* | ||
before_deploy: | ||
- wget https://raw.githubusercontent.com/dappnode/DAppNode/master/scripts/before_deploy.sh | ||
- source before_deploy.sh | ||
deploy: | ||
provider: releases | ||
prerelease: 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: | ||
branch: master | ||
tags: true | ||
condition: "$TRAVIS_TAG =~ ^release*$" | ||
after_deploy: | ||
- wget https://raw.githubusercontent.com/dappnode/DAppNode/master/scripts/after_deploy.sh | ||
- source after_deploy.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters