Skip to content

Commit

Permalink
Migrate to CircleCI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
g3kk0 committed Sep 14, 2017
1 parent a3294a4 commit a6ddee9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 42 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2
jobs:
build:
machine:
image: circleci/classic:201709-01
environment:
NATS_URI: nats://127.0.0.1:4222
ROOTPATH: /home/circleci/.go_workspace/src/github.com/ernestio
NATS_URI_TEST: nats://127.0.0.1:4222
GOBIN: /home/circleci/.go_workspace/bin
CURRENT_INSTANCE: http://ernest.local:80/
JWT_SECRET: test
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
ERNEST_LOG_FILE: '/tmp/ernest.log'
ERNEST_APPLY_DELAY: 1
ERNEST_CRYPTO_KEY: mMYlPIvI11z20H1BnBmB223355667788
working_directory: /home/circleci/.go_workspace/src/github.com/ernestio/monit
steps:
- checkout
- run:
name: Setup Hosts File
command: echo 127.0.0.1 ernest.local | sudo tee -a /etc/hosts
- run:
name: Install Dependencies
command: make dev-deps
- run:
name: Code Analysis
command: make lint
- run:
name: Unit Tests
command: make test
- run:
name: Integration Tests
command: |
git clone -b f-circleci-v2-680 [email protected]:ernestio/toolset.git /tmp/toolset/
cd /tmp/toolset/ernestci/ && bundle install
ruby /tmp/toolset/ernestci/run.rb $CIRCLE_WORKING_DIRECTORY/.ernest-ci
3 changes: 2 additions & 1 deletion .ernest-ci
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

ernest:f-micro-container-671
config-store:f-micro-container-671
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# Monit

master: [![CircleCI](https://circleci.com/gh/ernestio/monit/tree/master.svg?style=shield)](https://circleci.com/gh/ernestio/monit/tree/master)
develop: [![CircleCI](https://circleci.com/gh/ernestio/monit/tree/develop.svg?style=shield)](https://circleci.com/gh/ernestio/monit/tree/develop)

## Synopsis

This microservice listens to all `monitor.user` events that are fired off by the FSM. It allows users to listen to the event stream over SSE (Server Side Events)

These events are collected into an inbox based on the monitor id passed by the user on an action. The inbox is opened on `service.create`, `service.delete` and closed on `service.create.done` and `service.delete.done`. If no inbox with the given ID exists when a user connects, one will be created.

## Build status

* Master: [![CircleCI Master](https://circleci.com/gh/ernestio/monit/tree/master.svg?style=svg)](https://circleci.com/gh/ernestio/monit/tree/master)
* Develop: [![CircleCI Develop](https://circleci.com/gh/ernestio/monit/tree/develop.svg?style=svg)](https://circleci.com/gh/ernestio/monit/tree/develop)


## Installation

```
Expand Down
35 changes: 0 additions & 35 deletions circle.yml

This file was deleted.

0 comments on commit a6ddee9

Please sign in to comment.