diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3d3b335 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 7635055..1af87db 100644 --- a/README.md +++ b/README.md @@ -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! @@ -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: