Skip to content

Commit

Permalink
configured build
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg committed Mar 19, 2021
1 parent 909bfba commit 0339e80
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: go
go:
- master
script:
- make build-travis
deploy:
- provider: releases
skip_cleanup: true
api_key:
secure: "H4jk+hSqPxzyo73VL/VqSphFfahdpEgRVeFPqDsqc7HeebZbCFwtCgu2cUULoJ6KVEFNJ3x1yKkOApEs0Rvl3FKZwFVMkileTmSNXMxR2+gS4M5clIBZdOLasNWrAjwLl8OLTm6G/Qh4YWKs1lB51KI9Cn8Ybn7MzdOJs/LreT7j8luhdhhuP8xSDWwp2Q8tHBkkYMMSjkKaN8PTPoEXk3EHEtHzwmin3jHD36N5iJPAN2BddMFpkmeREzJP5uxNtMB6P+AYtmFhu7mfxyIaMAoinWv1dmP/WtUvKxcO4ckN8Jp8BVti4giIfl3qWBaGb+LssSO8Dn60eE8o3+UbzWQtflBeQUokXvtTZBZBoA2esSL+BlHWNxlCDtM5TrrBkW6gSmbfUibUrgpsYL3EfgRQbLiCTkULZy82KZSUdLlVEiHCS8/RilYRFSK8kUtHpG3vUgnjZ/1n39exAAYzNxcOXod6RYTX7dJ0os6CLZUa/xGGeuNEsoNw5ycxonzF1qVlHnAWOT2vrRarpSMcy6Ij0IdVUY9jvARFhj7x2ZnJh5bftttmgfMIsyqpxjl4RK1qx7S4Z1d36utguBvC3kqBatRSt7LaWCP5YxpHh15k+uclj3aLcdQVCrKFfbTXJoopSEHUUgyxXpstv8NFVEcx120T9i3T+v2rHl1hVXw="
name: "gifwrap $TRAVIS_TAG"
file:
- bin/darwin-amd64/gifwrap
- bin/darwin-arm64/gifwrap
- bin/linux-amd64/gifwrap
on:
repo: liamg/gifwrap
tags: true
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
default: build

build: test
mkdir -p bin
go build ./cmd/gifwrap/ -o bin/gifwrap

build-travis: test
mkdir -p bin/linux-amd64/gifwrap
mkdir -p bin/darwin-amd64/gifwrap
mkdir -p bin/darwin-arm64/gifwrap
GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/gifwrap ./cmd/gifwrap
GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/gifwrap ./cmd/gifwrap
GOOS=darwin GOARCH=arm64 go build -o bin/darwin-arm64/gifwrap ./cmd/gifwrap

test:
go vet ./...
go test -v ./...

.PHONY: build test
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# gifwrap

GIFs in your terminal
GIFs in your terminal.

![demo](demo.gif)

## Install

Download the [latest binary](https://github.com/liamg/gifwrap/releases/) or install with Go:

```bash
go install github.com/liamg/gifwrap@latest
gifwrap https://media.giphy.com/media/QMHoU66sBXqqLqYvGO/giphy.gif
```

## Usage

```bash
Usage:
gifwrap [url-or-path] [flags]

Flags:
-f, --fill Fill the entire terminal with the gif, ignoring aspect ratio
-h, --help help for gifwrap
```

0 comments on commit 0339e80

Please sign in to comment.