Skip to content

Commit

Permalink
Merge pull request #121 from phase2/develop
Browse files Browse the repository at this point in the history
2.0.0 release
  • Loading branch information
febbraro authored Nov 13, 2017
2 parents d1a9e76 + 5242e0c commit 9794851
Show file tree
Hide file tree
Showing 64 changed files with 2,440 additions and 1,790 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ dist
build
vendor
.idea
.outrigger.yml
.outrigger.yml
.DS_Store

78 changes: 78 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# One release file to rule them all
project_name: outrigger-cli

# Platforms/architectures to target
builds:
- binary: rig
main: ./cmd/main.go
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64

# Generating the archives
archive:
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
darwin: macOS

# Publishing releases to GitHub
release:
github:
owner: phase2
name: rig
# draft: true # This also prevents a homebrew release from getting generated

# Publishing Homebrew Formula to the Tap repo
brew:
github:
owner: phase2
name: homebrew-outrigger

# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: Outrigger
email: [email protected]

folder: Formula
homepage: "https://outrigger.sh/"
description: "Containerized development environment for projects. See https://docs.outrigger.sh for documentation."
dependencies:
- docker
- docker-machine
- docker-compose
- docker-machine-nfs
- unison
- eugenmayer/dockersync/unox

# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/rig", "--version"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "rig"
# Build linux packages
fpm:
vendor: Phase2
homepage: https://outrigger.sh/
maintainer: Outrigger <[email protected]>
description: Containerized development environment for projects. See https://docs.outrigger.sh for documentation.
license: MIT
formats:
- deb
- rpm
dependencies:
- docker-ce
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ os: linux

language: go
go:
- 1.7
- 1.9
- tip

matrix:
fast_finish: true
allow_failures:
- go: tip

env:
- GO15VENDOREXPERIMENT="0"

before_install: cd cli
install:
- "go get -u github.com/golang/dep/..."
- "go get -u github.com/alecthomas/gometalinter"
- "gometalinter --install --update"
- "dep ensure"

script:
- "../scripts/test-go-fmt.sh"
- "scripts/test-go-fmt.sh"
- "gometalinter --vendor --config=gometalinter.json ./..."
- "go run cmd/main.go"

notifications:
flowdock:
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## 2.0.0

This was a big one

- **Linux Compatibility**
- Full Linux compatibility (steps not needed on Linux are skipped)
- Linux packages (`.deb` and `.rpm`)
- Manage Linux configuration of Outrigger DNS

- **New Features**
- Desktop Notifications
- Recursively look up through project directory structure for `outrigger.yml`
- Output `rig project run` script steps in help message
- Added `--dir` to `rig project sync:start` to be able to customize the source for unison sync volumes
- Consistent error reporting and exit codes

- **Deprecations/Removals**
- Removed `rig watch` (deprecated as of v1.3.0)
- Removed CLI argument to name the volume for `rig project sync`

- **Technical Plumbing**
- Migrated to using `dep` for package management
- Reorganized and linted codebase using gometalinter
- Expanded test coverage to include gometalinter and a rig build & execution
- Use GoReleaser to package and distribute new releases


## 1.3.2

- Added support for outrigger.yml (non-hidden)
Expand Down
25 changes: 18 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
FROM golang:1.7-alpine
FROM golang:1.9-alpine

RUN apk add --no-cache \
ca-certificates \
git \
gcc \
musl-dev \
&& go get github.com/tools/godep \
&& go get github.com/mitchellh/gox
ca-certificates \
git \
gcc \
libffi-dev \
make \
musl-dev \
rpm \
ruby \
ruby-dev \
tar

RUN go get -u github.com/golang/dep/... \
&& go get -u github.com/alecthomas/gometalinter \
&& go get -u github.com/goreleaser/goreleaser

RUN gometalinter --install --update
RUN gem install --no-rdoc --no-ri fpm
87 changes: 87 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/bitly/go-simplejson"
version = "0.5.0"

[[constraint]]
name = "github.com/fatih/color"
version = "1.5.0"

[[constraint]]
name = "github.com/mattn/go-isatty"
version = "0.0.3"

[[constraint]]
name = "github.com/hashicorp/go-version"
branch = "master"

[[constraint]]
name = "github.com/kardianos/osext"
branch = "master"

[[constraint]]
name = "github.com/urfave/cli"
version = "1.20.0"

[[constraint]]
name = "gopkg.in/yaml.v2"
branch = "v2"

[[constraint]]
name = "github.com/martinlindhe/notify"
branch = "master"

Loading

0 comments on commit 9794851

Please sign in to comment.