Skip to content

Commit

Permalink
Disable Travis in favor of Circle (OpenZeppelin#1866)
Browse files Browse the repository at this point in the history
* replace readme badge

* remove travis config

* move to codecov

* add codecov config

* fix coverage running
  • Loading branch information
frangio authored Aug 7, 2019
1 parent 18b57ca commit 2a29f69
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 94 deletions.
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ jobs:
- *npm_install_if_necessary
- run:
name: Unit tests with coverage report
command: npm run test
environment:
SOLIDITY_COVERAGE: true
command: npm run coverage

# TODO(xinbenlv, #1839): run SOLC_NIGHTLY to be run but allow it to fail.

Expand Down
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
comment: off
coverage:
range: "100...100"
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# <img src="logo.png" alt="OpenZeppelin" height="40px">

[![NPM Package](https://img.shields.io/npm/v/@openzeppelin/contracts.svg)](https://www.npmjs.org/package/@openzeppelin/contracts)
[![Build Status](https://travis-ci.com/OpenZeppelin/openzeppelin-contracts.svg?branch=master)](https://travis-ci.com/OpenZeppelin/openzeppelin-contracts)
[![Build Status](https://circleci.com/gh/OpenZeppelin/openzeppelin-contracts.svg?style=shield)](https://circleci.com/gh/OpenZeppelin/openzeppelin-contracts)
[![Coverage Status](https://coveralls.io/repos/github/OpenZeppelin/openzeppelin-contracts/badge.svg?branch=master)](https://coveralls.io/github/OpenZeppelin/openzeppelin-contracts?branch=master)

**OpenZeppelin Contracts is a library for secure smart contract development.** It provides implementations of standards like ERC20 and ERC721 which you can deploy as-is or extend to suit your needs, as well as Solidity components to build custom contracts and more complex decentralized systems.
Expand Down
47 changes: 7 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"devDependencies": {
"chai": "^4.2.0",
"concurrently": "^4.1.0",
"coveralls": "^3.0.1",
"eslint": "^4.19.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.13.0",
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env bash

SOLIDITY_COVERAGE=true scripts/test.sh

if [ "$CI" = true ]; then
curl -s https://codecov.io/bash | bash -s
fi
4 changes: 0 additions & 4 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ npx truffle version

if [ "$SOLIDITY_COVERAGE" = true ]; then
npx solidity-coverage

if [ "$CONTINUOUS_INTEGRATION" = true ]; then
cat coverage/lcov.info | npx coveralls
fi
else
npx truffle test "$@"
fi

0 comments on commit 2a29f69

Please sign in to comment.