Move npm to yarn

parent 7b9c1429
...@@ -4,11 +4,10 @@ group: beta ...@@ -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 ...@@ -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:
......
#! /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
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment