Merge pull request #250 from jdkanani/yarn-setup

Add yarn support and use it for Travis CI
This commit is contained in:
Manuel Aráoz
2017-06-12 12:11:14 -03:00
committed by GitHub
4 changed files with 6445 additions and 5 deletions

View File

@ -4,11 +4,10 @@ group: beta
language: node_js
node_js:
- "6"
before_install:
- npm install truffle@3.2.2 -g
- npm i -g ethereumjs-testrpc
cache:
yarn: true
script:
- testrpc > /dev/null &
- truffle test
after_script:
- npm run coveralls
- yarn run coveralls

View File

@ -24,6 +24,9 @@ truffle init
To install the OpenZeppelin library, run:
```sh
npm install zeppelin-solidity
# If you are using yarn, add dependency like this -
yarn add zeppelin-solidity
```
After that, you'll get all the library's contracts in the `node_modules/zeppelin-solidity/contracts` folder. You can use the contracts in the library like so:

View File

@ -1,4 +1,4 @@
#! /bin/bash
npm run coverage && cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
yarn run coverage && cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

6438
yarn.lock Normal file

File diff suppressed because it is too large Load Diff