Skip to content

Commit

Permalink
Adding deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikogan authored and Ilya Kogan committed Jun 12, 2016
1 parent 23540cd commit 96d3cee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,35 @@ dist: trusty

language: node_js
node_js:
- "6"
- '6'

os:
- osx
- linux
- osx
- linux

cache:
directories:
- node_modules
- app/node_modules
- $HOME/.electron
directories:
- node_modules
- app/node_modules
- "$HOME/.electron"

before_install:
- .travis/install-dependencies.sh
- ".travis/install-dependencies.sh"

install:
- npm install
- npm prune

script:
- .travis/build.sh
- ".travis/build.sh"

branches:
only:
- travis
deploy:
provider: releases
api_key:
secure: vRjTudDpfxtoT3MzxRnITwBu3dLiDp7/xp4tw52A9oAX22T4C9+7xn17tJxfYBLk0rjhjgixCw0yhfe9dwI5AteGA9PUxjN7F2E2JVpNzj5umBVuZSFGFsmmJa/3ZWjlV8lItJ0ZLirLFRj3Cpd0Vwl3J6y/rTINB/C9P5fU14sTfQI8eaZz8eZqG4cmaKu2YdkLsYdcduQPrfj91ag3u0ggCiyd+k3ZAdEpC9nOQjWRBr6EaMVJ0+X6e9o940n0HL336Yw7dZ7+iXwcF2uLWnS8Ye8Uy3sMFL0jEzdwK0sU2pyMqNvrejhMDOSofMV/sP4+UTX2KAeh36ghGMFRlF2pwdMAMD1zjD7G+0RwZrkjZiDTQ2MyabK2Gs+W2gWcIdsEecAscK/19OF6iEc4vSaCzk1pAyCivJrPVOeStMC0z4bxmtJMbIRP9mGkCshf5ajldrNkMtT1EV3v3p+WSaAXb76iEj3Vc+pt3rXf4lIf3qjlCdit/VBATNZzwuYj4FTDbQ7x7t4j6xCHIyukWmNLTOReSEnktW2BK5z7i/G+4vSq39veORpG7k12f2eV6verd2H0RmUbKdsBNjAUbiMx8RxnUKFFXld1JmJAqHqf6YC7H+YdFttTV/BILc6SUvxqND74zFk0+tD+tLfmr9SEfTtEyxNSncI1j1rqGjU=
file_glob: true
file: "dist/release/*"
skip_cleanup: true
on:
repo: ikogan/farnsworth
tags: true
11 changes: 11 additions & 0 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@ set -e

echo "Building on ${TRAVIS_OS_NAME}..."

mkdir -p dist/release

if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
npm run dist:win64
mv -v dist/win/*.exe dist/release
npm run dist:win32
mv -v dist/win-ia32/*.exe dist/release
npm run dist:linux64
npm run dist:linux32
mv -v dist/*.rpm dist/release
mv -v dist/*.deb dist/release
mv -v dist/*.tar.gz dist/release
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
npm run dist:darwin
mv -v dist/osx/*.dmg dist/release
else
echo "Unhandled operating ${TRAVIS_OS_NAME}!"
exit 1
fi

0 comments on commit 96d3cee

Please sign in to comment.