Skip to content
Permalink
Browse files

Added CircleCI (#44)

Added CircleCI
  • Loading branch information
jamtur01 committed Sep 18, 2019
2 parents 310cbd1 + 117c7de commit c2005411535201aeb80952a9989e914d7b70a370
Showing with 65 additions and 22 deletions.
  1. +42 −0 .circleci/config.yml
  2. +0 −16 .travis.yml
  3. +1 −1 README.md
  4. +17 −0 pom.xml.asc
  5. +2 −0 project.clj
  6. +3 −5 scripts/run_riemann_server.sh
@@ -0,0 +1,42 @@
version: 2
shared: &shared
working_directory: ~/riemann-clojure-client
environment:
JVM_OPTS: -Xmx3200m
LEIN_ROOT: nbd
steps:
- checkout
- restore_cache: # restores saved cache if checksum hasn't changed since the last run
key: riemann-clojure-client-{{ checksum "project.clj" }}
- run: lein deps
- save_cache: # generate and store cache in the .m2 directory using a key template
paths:
- ~/.m2
- ~/.lein
key: riemann-clojure-client-{{ checksum "project.clj" }}
- run:
command: scripts/run_riemann_server.sh
background: true
- run:
command: sleep 30
- run: lein test2junit
- store_test_results:
path: target/test2junit

jobs:
jdk11:
docker: # run the steps with Docker
- image: circleci/clojure:openjdk-11-lein-2.9.1
<<: *shared
jdk8:
docker: # run the steps with Docker
- image: circleci/clojure:openjdk-8-lein-2.9.1
<<: *shared

workflows:
version: 2
test:
jobs:
- jdk8
- jdk11

This file was deleted.

@@ -5,7 +5,7 @@ small wrapper around
[riemann-java-client](https://github.com/aphyr/riemann-java-client); see its
documentation for more details.

[![Build Status](https://travis-ci.org/riemann/riemann-clojure-client.svg?branch=master)](https://travis-ci.org/riemann/riemann-clojure-client)
[![CircleCI](https://circleci.com/gh/riemann/riemann-clojure-client.svg?style=svg)](https://circleci.com/gh/riemann/riemann-clojure-client)

## Usage

@@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIzBAABCgAdFiEEXOyulRo4D8bGmC/oNhlTyd6ygBIFAl2BkYEACgkQNhlTyd6y
gBKykRAAi0YjXpV2pKLQDo8dXgT0q4tbjpzQ8RsejkatUOf0K5I73kfwkF+EchcZ
IlYL1ZegY5K4k3AEl6rwL/o7HJsblVZSdjC7V3d857Q8F2afqzcJ2RKyQxm06+Ki
8gSX7tcZJjS4MHcsl25vyF7FjC5n+e2ZbGgcv8r6ELPsYr87EDpr18H2VXD30KLl
zaBpJ1fYy1bXuQNsljDWUtPx3GSEyCiTBSM8Q2NE2I6qmYdFZBMyH3qhzm9pktpF
pHKRmcXLM6hHd9Wl4Xw+FvfgsWkYOVhia4bFmzXl4GOyCuQC5xRmYUWlXcyvTdbg
542FJnP2WfTyMkYedRd5D1jj5HRwehinEW2Jed6TI3u6loEABi18oroZYTM6xHe2
g+05+TDadA17UKMkvGauk/aeKAMmitrQ7CTm8zfrGLJ8g9sV1dIltrzt8KD2gihI
c8APXC6GNN2gqFK8BQ3FSDkZ25O40P8UZOVFu4EbmB5BctC0nyEdM3JPs7fwlVgb
jytr96NnJ2J7+7MQBTd7yNQdD4CNQUxLr1QMIikBf/jkkRfOlCwnikqg18JF97Xi
FIzGpdaPrkcns7tnPAuUjNKjywEG1udvjlVkdZ67s+Kcnpbq8g0UcM42yq2XkYRW
HSenZRmdeLkkcZQ1rhFIr9Va91/X82isW0VrG7WK6gtcJJoSDqk=
=NhNe
-----END PGP SIGNATURE-----
@@ -5,6 +5,8 @@
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[less-awful-ssl "1.0.4"]
[io.riemann/riemann-java-client "0.5.1"]]
:plugins [[test2junit "1.3.3"]]
:test2junit-output-dir "target/test2junit"
:profiles {:dev {:dependencies [[org.clojure/clojure "1.9.0"]]}
:bench {:dependencies [[org.clojure/clojure "1.9.0"]
[criterium "0.4.4"]]
@@ -1,8 +1,6 @@
#!/bin/bash

git clone https://github.com/riemann/riemann.git
cd riemann
lein deps
wget https://github.com/riemann/riemann/releases/download/0.3.3/riemann-0.3.3-standalone.jar

cat << EOF > ./riemann.config
; -*- mode: clojure; -*-
@@ -38,5 +36,5 @@ cat << EOF > ./riemann.config
:ttl 3}]}))))
EOF

nohup lein run -- ./riemann.config &
cd ..
java -jar riemann-0.3.3-standalone.jar

0 comments on commit c200541

Please sign in to comment.
You can’t perform that action at this time.