Skip to content

Commit

Permalink
Move CI from Travis to Circle (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 committed Dec 20, 2018
1 parent f8e1a2b commit d5b4d19
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
jobs:
build:
docker:
- image: cypress/base:8
environment:
# this enables colors in the output
TERM: xterm
working_directory: ~/repo
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache
- run: yarn lint
- run: yarn test:browser:ci
- run: yarn test:coverage --no-cache
- run: ./node_modules/.bin/coveralls < coverage/lcov.info
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
_A Promise-based API for querying [Troy Hunt][troy]'s [Have I been
pwned?][haveibeenpwned] service._

[![npm Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
[![npm Version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url]
[![Code Coverage][coverage-image]][coverage-url]

## Installation
Expand Down Expand Up @@ -195,9 +195,9 @@ This module is distributed under the [MIT License][license].

[npm-image]: https://img.shields.io/npm/v/hibp.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/hibp
[travis-image]:
https://img.shields.io/travis/wKovacs64/hibp.svg?style=flat-square&branch=master
[travis-url]: https://travis-ci.org/wKovacs64/hibp
[ci-image]:
https://img.shields.io/circleci/project/github/wKovacs64/hibp/master.svg?style=flat-square
[ci-url]: https://circleci.com/gh/wKovacs64/hibp
[coverage-image]:
https://img.shields.io/coveralls/wKovacs64/hibp.svg?style=flat-square&branch=master
[coverage-url]: https://coveralls.io/github/wKovacs64/hibp?branch=master
Expand Down

0 comments on commit d5b4d19

Please sign in to comment.