Skip to content

Commit

Permalink
ci(circle): migrate to circle-ci (#4)
Browse files Browse the repository at this point in the history
* ci(bithound): remove config

* ci(travis): remove config

* ci(appveyor): remove config

* ci(codedov): remove config

* ci(circle): add config

* build(npm): update scripts, deps

* refactor: update .gitignore

* docs: update README
  • Loading branch information
Burak Tasci committed Sep 4, 2017
1 parent b07befc commit 9b40631
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 87 deletions.
8 changes: 0 additions & 8 deletions .bithoundrc

This file was deleted.

40 changes: 40 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,40 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:7
branches:
only: master
steps:
- checkout
- run:
name: Update yarn
command: 'sudo npm install -g yarn@latest'
- restore_cache:
keys:
- deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- deps-
- run:
name: Install dependencies
command: yarn
- save_cache:
key: deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths: 'node_modules'
- run:
name: Rollup build
command: yarn build
- run:
name: Test & coverage
command: yarn test.ci
- store_artifacts:
path: test-report.xml
prefix: tests
- store_artifacts:
path: coverage
prefix: coverage
- store_artifacts:
path: dist
prefix: dist
- store_test_results:
path: test-report.xml
- run: bash <(curl -s https://codecov.io/bash)
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -6,13 +6,14 @@ dist/

# dependencies
node_modules/
yarn.*

# IDEs and editors
.idea/

# build tools
coverage/
test-report.xml

# misc
npm-debug.log
yarn-error.log
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
@@ -1,8 +1,7 @@
# ngx-auth
JWT authentication utility for **Angular**

[![Linux build](https://travis-ci.org/fulls1z3/ngx-auth.svg?branch=master)](https://travis-ci.org/fulls1z3/ngx-auth)
[![Windows build](https://ci.appveyor.com/api/projects/status/github/fulls1z3/ngx-auth?branch=master&svg=true)](https://ci.appveyor.com/project/fulls1z3/ngx-auth)
[![CircleCI](https://circleci.com/gh/fulls1z3/ngx-auth.svg?style=shield)](https://circleci.com/gh/fulls1z3/ngx-auth)
[![coverage](https://codecov.io/github/fulls1z3/ngx-auth/coverage.svg?branch=master)](https://codecov.io/gh/fulls1z3/ngx-auth)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
[![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)
Expand Down
31 changes: 0 additions & 31 deletions appveyor.yml

This file was deleted.

6 changes: 0 additions & 6 deletions codecov.yml

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -21,7 +21,8 @@
"build": "ts-node ./tools/build/rollup.ts && rimraf .temp",
"lint": "tslint -p ./tslint.json --force",
"rebuild": "npm run clean && npm run build",
"test": "jest --runInBand --colors"
"test": "jest --runInBand --colors",
"test.ci": "jest --ci --updateSnapshot"
},
"devDependencies": {
"@angular/common": "~2.4.0",
Expand All @@ -48,6 +49,7 @@
"rollup-plugin-uglify": "^2.0.1",
"jest": "^20.0.4",
"jest-preset-angular": "^2.0.5",
"jest-junit-reporter": "^1.1.0",
"codelyzer": "^3.1.2",
"tslint": "~5.7.0",
"angular-tslint-rules": "^1.0.4",
Expand All @@ -56,6 +58,7 @@
"jest": {
"preset": "jest-preset-angular",
"setupTestFrameworkScriptFile": "./tools/test/jest.setup.ts",
"testResultsProcessor": "./node_modules/jest-junit-reporter",
"globals": {
"ts-jest": {
"tsConfigFile": "./tsconfig.json"
Expand Down

0 comments on commit 9b40631

Please sign in to comment.