Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitf committed May 7, 2018
1 parent 9d2328e commit 8463f24
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- cd ${THEIA_HOME} && for f in $(find . -name "package.json" -type f -not -path "*node_modules/*"); do cd ${THEIA_HOME}/$(dirname $f) && npm version -no-git-tag-version ${THEIA_PUBLISHED_VERSION}; done; cd ${THEIA_HOME}
deploy:
provider: script
script: cd ${THEIA_HOME}/dev-packages && for f in $(find . -name "package.json" -type f); do cd ${THEIA_HOME}/dev-packages/$(dirname $f) && echo "publishing from $(pwd) the command publish...." && npm publish --access public; done; cd ${THEIA_HOME}/packages && for f in $(find . -name "package.json" -type f); do cd ${THEIA_HOME}/packages/$(dirname $f) && npm publish --access public; done ;
script: bash ${THEIA_HOME}/scripts/publish-theia.sh ${THEIA_HOME}
on:
branch: master
skip_cleanup: true
19 changes: 19 additions & 0 deletions scripts/publish-theia.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

export THEIA_HOME=$1
echo "Deploying to NPM... using THEIA directory $1"

cd ${THEIA_HOME}/dev-packages
for f in $(find . -name "package.json" -type f); do
cd ${THEIA_HOME}/dev-packages/$(dirname $f);
echo "publishing from $(pwd) the command publish....";
npm publish --access public;
done;

cd ${THEIA_HOME}/packages
for f in $(find . -name "package.json" -type f); do
cd ${THEIA_HOME}/packages/$(dirname $f);
echo "publishing from $(pwd) the command publish....";
npm publish --access public;
done;

0 comments on commit 8463f24

Please sign in to comment.