-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from storybooks/travis
ADD travis
- Loading branch information
Showing
8 changed files
with
78 additions
and
11 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,14 @@ | ||
language: node_js | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
notifications: | ||
email: false | ||
node_js: | ||
- "5" | ||
before_install: ./scripts/travis/before_install.sh | ||
after_success: ./scripts/travis/after_success.sh | ||
script: npm run test | ||
git: | ||
depth: 1 |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"devDependencies": { | ||
"lerna": "2.0.0-beta.38" | ||
}, | ||
"scripts": { | ||
"postinstall": "lerna bootstrap", | ||
"test": "lerna run test" | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo "We are in a pull request, not releasing" | ||
exit 0 | ||
fi | ||
|
||
if [[ $TRAVIS_BRANCH == 'master' ]]; then | ||
# npm run semantic-release | ||
fi |
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,38 @@ | ||
#!/bin/bash | ||
set -e | ||
# Note: do not do set -x or the passwords will leak! | ||
|
||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo "We are in a pull request, not setting up release" | ||
exit 0 | ||
fi | ||
|
||
if [[ $TRAVIS_BRANCH == 'master' ]]; then | ||
# rm -rf .git | ||
# git init | ||
# git clean -dfx | ||
# git remote add origin https://github.com/atlassian/lerna-semantic-release.git | ||
# git fetch origin | ||
# git clone https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG | ||
# git checkout $TRAVIS_BRANCH | ||
# | ||
# git config credential.helper store | ||
# echo "https://${RELEASE_GH_USERNAME}:${RELEASE_GH_TOKEN}@github.com/atlassian/lerna-semantic-release.git" > ~/.git-credentials | ||
# | ||
# npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN -q | ||
# npm prune | ||
# | ||
# git config --global user.email "design-platform@atlassian.com" | ||
# git config --global user.name "Design Platform" | ||
# git config --global push.default simple | ||
# | ||
# git fetch --tags | ||
# git branch -u origin/$TRAVIS_BRANCH | ||
# git fsck --full #debug | ||
# echo "npm whoami" | ||
# npm whoami #debug | ||
# echo "git config --list" | ||
# git config --list #debug | ||
echo "We are on master" | ||
exit 0 | ||
fi |