Skip to content

Commit

Permalink
Merge pull request #6 from aint/master
Browse files Browse the repository at this point in the history
Introduce TravisCI
  • Loading branch information
onilton authored Aug 15, 2019
2 parents 1f34af9 + aa0c20e commit c9cdaed
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: scala
scala:
- 2.11.12

cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt

script:
- sbt nativeLink
- cp target/scala-2.11/ogl-out ogl
- chmod +x ogl
- tar -cf $ARTIFACT_NAME.tar ogl

matrix:
include:
- os: linux
env: ARTIFACT_NAME=ogl-linux
- os: osx
env: ARTIFACT_NAME=ogl-macos

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- $ARTIFACT_NAME.tar
skip_cleanup: true
on:
tags: true
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.com/aint/ogl.svg?branch=master)](https://travis-ci.com/aint/ogl)

# Ogl

The prettiest git log graph in town!
Expand All @@ -8,21 +10,34 @@ The prettiest git log graph in town!

We all love the terminal. git log --graph is cool, but it can get really hard to read.

## Install
## Installation

The easiest way is to get the single binary (available in releases page).

Install with a single command:

### On Linux
```
$ sudo curl -sL https://github.com/onilton/ogl/releases/download/v0.0.2/ogl-linux.tar | tar x -C /usr/local/bin/
```

Or with wget:

```
sudo curl -o /usr/local/bin/ogl 'https://github.com/onilton/ogl/releases/download/v0.0.1/ogl' ; sudo chmod +x /usr/local/bin/ogl
$ sudo wget -qO- https://github.com/onilton/ogl/releases/download/v0.0.2/ogl-linux.tar | tar x -C /usr/local/bin/
```

### On MacOS
```
$ curl -sL https://github.com/onilton/ogl/releases/download/v0.0.2/ogl-macos.tar | tar x -C /usr/local/bin/
```

Or with wget:

```
sudo wget 'https://github.com/onilton/ogl/releases/download/v0.0.1/ogl' -O /usr/local/bin/ogl ; sudo chmod +x /usr/local/bin/ogl
$ wget -qO- https://github.com/onilton/ogl/releases/download/v0.0.2/ogl-macos.tar | tar x -C /usr/local/bin/
```

## Config file

You can change some settings like colors in `~/.ogl`. An example config:
Expand Down

0 comments on commit c9cdaed

Please sign in to comment.