Skip to content

Commit c2a114a

Browse files
uaArsenstas-fomenko
authored andcommitted
Circle ci (#21)
* Create config for circle ci * Circle ci trigger * Fix configs
1 parent 3d33515 commit c2a114a

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:8.16.0
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: npm install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run tests!
37+
- run: npm test
38+
docs:
39+
docker:
40+
- image: circleci/node:12-stretch
41+
steps:
42+
- checkout
43+
- run:
44+
name: Download Script
45+
command: mkdir $HOME/script && curl -o $HOME/script/create_pr.bash https://raw.githubusercontent.com/elasticio/elasticio.github.io/master/scripts/create_pr.bash
46+
- run:
47+
shell: /bin/bash
48+
name: Create PR
49+
command: bash $HOME/script/create_pr.bash -p $PWD -n rest-api-component
50+
workflows:
51+
version: 2
52+
build_and_test:
53+
jobs:
54+
- build
55+
deploy_docs:
56+
jobs:
57+
- docs:
58+
filters:
59+
branches:
60+
only:
61+
- master

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![CircleCI](https://circleci.com/gh/elasticio/splitter-component/tree/master.svg?style=svg)](https://circleci.com/gh/elasticio/splitter-component/tree/master)
12
# splitter-component
23
Splitter is the basic component for the [elastic.io platform](http://www.elastic.io).
34

0 commit comments

Comments
 (0)