Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fabric-composer/fabric-composer
Browse files Browse the repository at this point in the history
  • Loading branch information
samjsmith committed Mar 14, 2017
2 parents 38d571d + e2980cd commit 8bc4b0c
Show file tree
Hide file tree
Showing 22 changed files with 416 additions and 223 deletions.
22 changes: 14 additions & 8 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ if [[ "${TRAVIS_REPO_SLUG}" != fabric-composer* ]]; then
exit 0
fi

# are we building the docs?
if [ "${DOCS}" != "" ]; then
if [ -z "${TRAVIS_TAG}" ]; then
DOCS="full"
else
DOCS="unstable"
fi
./.travis/deploy_docs.sh
exit 0
fi


# Set the NPM access token we will use to publish.
npm config set registry https://registry.npmjs.org/
Expand All @@ -55,7 +66,7 @@ export DOCKER_IMAGES="composer-ui composer-playground"

# Push the code to npm.
if [ -z "${TRAVIS_TAG}" ]; then
DOCS="unstable"

# Set the prerelease version.
npm run pkgstamp
export VERSION=$(node -e "console.log(require('${DIR}/package.json').version)")
Expand Down Expand Up @@ -96,7 +107,7 @@ if [ -z "${TRAVIS_TAG}" ]; then
popd

else
DOCS="full"

# Grab the current version.
export VERSION=$(node -e "console.log(require('${DIR}/package.json').version)")

Expand Down Expand Up @@ -152,9 +163,4 @@ else
git push origin master

fi

# are we building the docs?
if [ "${DOCS}" != "" ]; then
./.travis/deploy_docs.sh
exit 0
fi
date
16 changes: 9 additions & 7 deletions .travis/deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ git config push.default simple
echo ${DIR}
cd "${DIR}/packages/composer-website/out"

if [ "${DOCS}" == "unstable" ]; then
export REPO="fabric-composer-ubstable.github.io"
else
export REPO="fabric-composer.github.io"
fi
export REPO="fabric-composer.github.io"

git clone [email protected]:fabric-composer/${REPO}.git
git remote set-url origin ${REPO}.git

cd "${DIR}/packages/composer-website/out/${REPO}"

mkdir -p "${DIR}/packages/composer-website/out/${REPO}/unstable"

if [ "${DOCS}" == "full" ]; then
rm -rf ${DIR}/packages/composer-website/out/${REPO}/*
cp -rf ${DIR}/packages/composer-website/jekylldocs/_site/* .
fi

rm -rf ${DIR}/packages/composer-website/out/${REPO}/*
cp -rf ${DIR}/packages/composer-website/jekylldocs/_site/* .
cp -rf ${DIR}/packages/composer-website/jekylldocs/_site/* ./unstable

git add .

Expand Down
3 changes: 2 additions & 1 deletion packages/composer-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
},
"dependencies": {
"composer-common": "^0.5.2",
"composer-connector-hlf": "^0.5.2"
"composer-connector-hlf": "^0.5.2",
"composer-connector-hlfv1": "^0.5.2"
},
"license-check-config": {
"src": [
Expand Down
1 change: 1 addition & 0 deletions packages/composer-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"dependencies": {
"composer-common": "^0.5.2",
"composer-connector-hlf": "^0.5.2",
"composer-connector-hlfv1": "^0.5.2",
"uuid": "^3.0.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 8bc4b0c

Please sign in to comment.