-
-
Notifications
You must be signed in to change notification settings - Fork 142
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 #27 from js-accounts/circleci-yarn
Circleci yarn
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,6 +1,27 @@ | ||
machine: | ||
node: | ||
version: 6.2.1 | ||
environment: | ||
YARN_VERSION: 0.18.1 | ||
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" | ||
|
||
dependencies: | ||
pre: | ||
- | | ||
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then | ||
echo "Download and install Yarn." | ||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION | ||
else | ||
echo "The correct version of Yarn is already installed." | ||
fi | ||
override: | ||
- yarn install | ||
cache_directories: | ||
- ~/.yarn | ||
- ~/.cache/yarn | ||
|
||
test: | ||
override: | ||
- yarn test | ||
post: | ||
- "npm run coveralls" | ||
- "yarn coveralls" |