Skip to content

Commit f4c7bb0

Browse files
committed
Initial commit and pack creation.
1 parent d430e6a commit f4c7bb0

File tree

13 files changed

+123
-2
lines changed

13 files changed

+123
-2
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
jobs:
4+
build_and_test:
5+
docker:
6+
- image: circleci/python:2.7
7+
- image: rabbitmq:3
8+
- image: mongo:3.4
9+
10+
steps:
11+
- checkout
12+
- run:
13+
name: Run tests
14+
command: make all
15+
16+
workflows:
17+
version: 2
18+
build_test_deploy:
19+
jobs:
20+
- build_and_test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,6 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
# ignore mac BS file
107+
.DS_Store

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## v0.1.0
4+
5+
Initial Revision

CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## Pack Contributors
2+
* Encore Technologies [email protected]

Makefile

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
THIS_FILE := $(lastword $(MAKEFILE_LIST))
2+
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
3+
CI_REPO_PATH ?= $(ROOT_DIR)/ci
4+
CI_REPO_BRANCH ?= master
5+
6+
# read in pack's name from pack.yaml, export it so that the ci/Makefile
7+
# can access its value
8+
export PACK_NAME := $(shell grep "name:" pack.yaml | awk '{ print $$2 }')
9+
10+
.PHONY: all
11+
all: .DEFAULT
12+
13+
.PHONY: clean
14+
clean: clean-ci-repo
15+
16+
.PHONY: pack-name
17+
pack-name: .pack-name
18+
19+
.PHONY: .pack-name
20+
.pack-name:
21+
@echo $(PACK_NAME)
22+
23+
# Clone the ci-repo into the ci/ directory
24+
.PHONY: clone-ci-repo
25+
clone-ci-repo:
26+
@echo
27+
@echo "==================== clone-ci-repo ===================="
28+
@echo
29+
@if [ ! -d "$(CI_REPO_PATH)" ]; then \
30+
git clone https://github.com/EncoreTechnologies/ci-stackstorm.git --depth 1 --single-branch --branch $(CI_REPO_BRANCH) $(CI_REPO_PATH); \
31+
else \
32+
pushd $(CI_REPO_PATH) &> /dev/null; \
33+
git pull; \
34+
popd &> /dev/null; \
35+
fi;
36+
37+
# Clean the ci-repo (calling `make clean` in that directory), then remove the
38+
# ci-repo directory
39+
.PHONY: clean-ci-repo
40+
clean-ci-repo:
41+
@echo
42+
@echo "==================== clean-ci-repo ===================="
43+
@echo
44+
@if [ -d "$(CI_REPO_PATH)" ]; then \
45+
make -f $(ROOT_DIR)/ci/Makefile clean; \
46+
fi;
47+
rm -rf $(CI_REPO_PATH)
48+
49+
# forward all make targets not found in this makefile to the ci makefile to do
50+
# the actual work (by calling the invoke-ci-makefile target)
51+
# http://stackoverflow.org/wiki/Last-Resort_Makefile_Targets
52+
# Unfortunately the .DEFAULT target doesn't allow for dependencies
53+
# so we have to manually specify all of the steps in this target.
54+
.DEFAULT:
55+
$(MAKE) clone-ci-repo
56+
@echo
57+
@echo "==================== invoke ci/Makefile (targets: $(MAKECMDGOALS)) ===================="
58+
@echo
59+
make -f $(ROOT_DIR)/ci/Makefile $(MAKECMDGOALS)

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# stackstorm-sql
2-
StackStorm Integration Pack for SQL Databases (Postgres, MySQL, etc)
1+
# sql Integration Pack
2+
3+
## Configuration
4+
TODO: Describe configuration
5+
6+
7+
# Sensors
8+
9+
## Example Sensor
10+
TODO: Describe sensor
11+
12+
13+
# Actions
14+
15+
## example
16+
TODO: Describe action

actions/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Actions

actions/workflows/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Workflows

config.schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
---

pack.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
ref: sql
3+
name: sql
4+
description: StackStorm Integration Pack for SQL Databases (Postgres, MySQL, etc)
5+
keywords:
6+
- Postgres
7+
- MySQL
8+
- MsSQL
9+
version: 0.1.0
10+
author: Encore Technologies
11+

0 commit comments

Comments
 (0)