Skip to content

Commit baed971

Browse files
authored
Merge pull request #13 from sevensc/feature/circleci
Feature/circleci
2 parents 1063def + 3eaa392 commit baed971

File tree

4 files changed

+93
-1
lines changed

4 files changed

+93
-1
lines changed

.circleci/config-compiled.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:7.10
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
keys:
10+
- v1-dependencies-{{ checksum "package.json" }}
11+
- v1-dependencies-
12+
- run:
13+
command: npm install
14+
- save_cache:
15+
key: v1-dependencies-{{ checksum "package.json" }}
16+
paths:
17+
- node_modules
18+
- run:
19+
command: npm run build
20+
test:
21+
docker:
22+
- image: circleci/node:7.10
23+
steps:
24+
- checkout
25+
- restore_cache:
26+
keys:
27+
- v1-dependencies-{{ checksum "package.json" }}
28+
- v1-dependencies-
29+
- run:
30+
command: npm run build
31+
- run:
32+
command: npm run test
33+
workflows:
34+
version: 2
35+
build-and-deploy:
36+
jobs:
37+
- build
38+
- test:
39+
filters:
40+
branches:
41+
only: master

.circleci/config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: 2.1
2+
3+
executors:
4+
nodejs:
5+
docker:
6+
- image: circleci/node:7.10
7+
8+
commands:
9+
ceckout-and-restore-cache:
10+
description: "restore cache by package.json"
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ checksum "package.json" }}
16+
- v1-dependencies-
17+
save-node-modules-cache:
18+
steps:
19+
- save_cache:
20+
key: v1-dependencies-{{ checksum "package.json" }}
21+
paths:
22+
- node_modules
23+
24+
jobs:
25+
build:
26+
executor: nodejs
27+
steps:
28+
- ceckout-and-restore-cache
29+
- run: npm install
30+
- save-node-modules-cache
31+
- run: npm run build
32+
33+
test:
34+
executor: nodejs
35+
steps:
36+
- ceckout-and-restore-cache
37+
- run: npm install
38+
- run: npm run build
39+
- run: npm run test
40+
41+
workflows:
42+
version: 2.1
43+
build-and-deploy:
44+
jobs:
45+
- build
46+
- test:
47+
requires:
48+
- build
File renamed without changes.

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
[![NPM](https://nodei.co/npm/typescript-string-operations.png?mini=true)](https://www.npmjs.com/package/typescript-string-operations)
1+
2+
3+
![CircleCI](https://img.shields.io/circleci/build/github/sevensc/typescript-string-operations?logo=circleci&token=e3f75ec3d21d6da12384faf594c9d05fe9f65747)
4+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sevensc_typescript-string-operations&metric=alert_status)](https://sonarcloud.io/dashboard?id=sevensc_typescript-string-operations)![npm](https://img.shields.io/npm/v/typescript-string-operations)![npm](https://img.shields.io/npm/dw/typescript-string-operations)
25
# Simple lightweight string operation library for Typescript.
36
## No jQuery required! Unit tested, works with Angular.
47

0 commit comments

Comments
 (0)