|
|
|
@ -13,10 +13,6 @@ jobs: |
|
|
|
|
name: Install dependencies |
|
|
|
|
command: | |
|
|
|
|
yarn |
|
|
|
|
- run: |
|
|
|
|
name: Get submodules |
|
|
|
|
command: | |
|
|
|
|
git submodule update --init |
|
|
|
|
- run: |
|
|
|
|
name: Run tests |
|
|
|
|
command: | |
|
|
|
@ -42,15 +38,27 @@ jobs: |
|
|
|
|
# command: | |
|
|
|
|
# ./scripts/run-colony.sh |
|
|
|
|
|
|
|
|
|
# It would be nice if all this could be a shell script but Circle is |
|
|
|
|
# extremely annoying about |
|
|
|
|
# a) cacheing |
|
|
|
|
# b) sudo |
|
|
|
|
# c) scripts |
|
|
|
|
# d) being in a docker container. |
|
|
|
|
e2e-zeppelin: |
|
|
|
|
docker: |
|
|
|
|
- image: circleci/node:10.12-stretch |
|
|
|
|
steps: |
|
|
|
|
- checkout |
|
|
|
|
- run: |
|
|
|
|
name: OpenZeppelin E2E |
|
|
|
|
command: | |
|
|
|
|
sudo URL=$CIRCLE_REPOSITORY_URL BRANCH=$CIRCLE_BRANCH ./scripts/run-zeppelin.sh |
|
|
|
|
- run: > |
|
|
|
|
sudo rm -rf node_modules && |
|
|
|
|
PR_PATH=$(echo "$CIRCLE_REPOSITORY_URL#$CIRCLE_BRANCH" | sudo sed 's/git@github.com:/https:\/\/github.com\//') && |
|
|
|
|
sudo git clone https://github.com/OpenZeppelin/openzeppelin-solidity.git && |
|
|
|
|
cd openzeppelin-solidity && |
|
|
|
|
sudo sed -i 's/cat coverage\/lcov.info | npx coveralls/echo "No coveralls"/g' scripts/test.sh && |
|
|
|
|
sudo yarn && |
|
|
|
|
sudo yarn remove solidity-coverage --dev && |
|
|
|
|
sudo yarn add "$PR_PATH" --dev && |
|
|
|
|
sudo npm run coverage |
|
|
|
|
|
|
|
|
|
workflows: |
|
|
|
|
version: 2 |
|
|
|
|