Merge pull request #250 from jdkanani/yarn-setup
Add yarn support and use it for Travis CI
This commit is contained in:
@ -4,11 +4,10 @@ group: beta
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "6"
|
- "6"
|
||||||
before_install:
|
cache:
|
||||||
- npm install truffle@3.2.2 -g
|
yarn: true
|
||||||
- npm i -g ethereumjs-testrpc
|
|
||||||
script:
|
script:
|
||||||
- testrpc > /dev/null &
|
- testrpc > /dev/null &
|
||||||
- truffle test
|
- truffle test
|
||||||
after_script:
|
after_script:
|
||||||
- npm run coveralls
|
- yarn run coveralls
|
||||||
|
|||||||
@ -24,6 +24,9 @@ truffle init
|
|||||||
To install the OpenZeppelin library, run:
|
To install the OpenZeppelin library, run:
|
||||||
```sh
|
```sh
|
||||||
npm install zeppelin-solidity
|
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:
|
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:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user