Skip to content

Commit

Permalink
SMRT-1255 Open Source
Browse files Browse the repository at this point in the history
co-authored-by: ManApart <[email protected]>
  • Loading branch information
badams-scos and ManApart authored May 16, 2019
1 parent 8462b12 commit 7c9f2f4
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 50 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: elixir
elixir:
- '1.8.1'
otp_release:
- '21.3'
install:
- mix local.rebar --force;
- mix local.hex --force
- mix deps.get
- mix format --check-formatted
- mix credo
script:
- mix test
deploy:
skip_cleanup: true
provider: script
script: bash scripts/deploy.sh
on:
tags: true



11 changes: 0 additions & 11 deletions Dockerfile

This file was deleted.

30 changes: 0 additions & 30 deletions Jenkinsfile

This file was deleted.

18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# DivoRedis
[![Master](https://travis-ci.org/smartcitiesdata/divo_redis.svg?branch=master)](https://travis-ci.org/smartcitiesdata/divo_redis)
[![Hex.pm Version](http://img.shields.io/hexpm/v/divo_redis.svg?style=flat)](https://hex.pm/packages/divo_redis)

# Divo Redis

A library implementing the Divo Stack behaviour, providing a pre-configured redis
via docker-compose for integration testing Elixir apps. The cluster is a
Expand All @@ -13,8 +16,8 @@ The package can be installed by adding `divo_redis` to your list of dependencies
```elixir
def deps do
[
{:divo, "~> 1.1", organization: "smartcolumbus_os"},
{:divo_redis, "~> 0.1.0", organization: "smartcolumbus_os"}
{:divo, "~> 1.1"},
{:divo_redis, "~> 0.1.1"}
]
end
```
Expand All @@ -41,11 +44,16 @@ to the host.

DivoRedis takes no configuration.

See [Divo](https://github.com/smartcolumbusos/divo) for more instructions on using and
See [Divo](https://github.com/smartcitiesdata/divo) for more instructions on using and
configuring the Divo library.
See [antirez/redis](https://github.com/antirez/redis) for further documentation on using
and configuring the features of these images.

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/divo_kafka](https://hexdocs.pm/divo_redis).
be found at [https://hexdocs.pm/divo_redis](https://hexdocs.pm/divo_redis).


## License

SmartCity is released under the Apache 2.0 license - see the license at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
8 changes: 4 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ defmodule DivoRedis.MixProject do
def project do
[
app: :divo_redis,
version: "0.1.0",
version: "0.1.1",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
source_url: "https://github.com/SmartColumbusOS/divo-redis"
source_url: "https://github.com/smartcitiesdata/divo_redis"
]
end

Expand All @@ -35,9 +35,9 @@ defmodule DivoRedis.MixProject do

defp package do
[
organization: "smartcolumbus_os",
maintainers: ["smartcitiesdata"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/SmartColumbusOS/divo-redis"}
links: %{"GitHub" => "https://github.com/smartcitiesdata/divo_redis"}
]
end
end
4 changes: 4 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash
echo "Running deploy script...."
# Relies on HEX_API_KEY environment varibale.
mix hex.publish --yes
13 changes: 13 additions & 0 deletions scripts/set_release_number.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/bash
current_version=$(mix hex.build | grep 'Version:' | awk '{print $2}')
echo "Current Application Version is: " $current_version
read -p "Enter new version number: " new_version
files=(
mix.exs
README.md
)
for file in "${files[@]}"; do
sed -i '' "s/$current_version/$new_version/g" "$file"
done

echo "You will need commit the changed files"

0 comments on commit 7c9f2f4

Please sign in to comment.