Skip to content

Commit

Permalink
Move dev (flipt-io#103)
Browse files Browse the repository at this point in the history
* Move dev folder out of build

* update dockerignore

* Fix snapshot and release script
  • Loading branch information
markphelps committed Jul 8, 2019
1 parent 1d0014d commit 5ed6d9a
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
.github/
.vagrant/
app/
bazel-*/
bin/
build/
dev/
dist/
Dockerfile
docs/
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ dev: ## Build and run in development mode
.PHONY: snapshot
snapshot: ## Build a snapshot version
@echo ">> building a snapshot version"
@./build/release/snapshot
@./build/snapshot

.PHONY: release
release: ## Build and publish a release
@echo ">> building and publishing a release"
@./build/release/release
@./build/release

.PHONY: help
help:
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions build/release/release → build/release
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

GORELEASER_VERSION=v0.106

cd "$(dirname "$0")/../.." || exit
cd "$(dirname "$0")/.." || exit

read -r -p "Are you sure? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
Expand All @@ -17,6 +17,4 @@ then
-e DOCKER_USERNAME \
-e DOCKER_PASSWORD \
goreleaser/goreleaser:"$GORELEASER_VERSION"-cgo --rm-dist

mkdocs gh-deploy
fi
2 changes: 1 addition & 1 deletion build/release/snapshot → build/snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

GORELEASER_VERSION=v0.106

cd "$(dirname "$0")/../.." || exit
cd "$(dirname "$0")/.." || exit

docker run --rm --privileged \
-v "$PWD":/flipt \
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion build/dev/centos/Vagrantfile → dev/centos/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Vagrant.configure("2") do |config|
# guest extensions, install this plugin to do so:
#
# vagrant plugin install vagrant-vbguest
config.vm.synced_folder "../../..", "/flipt"
config.vm.synced_folder "../..", "/flipt"
end
File renamed without changes.
2 changes: 1 addition & 1 deletion build/dev/ubuntu/Vagrantfile → dev/ubuntu/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Vagrant.configure("2") do |config|
# guest extensions, install this plugin to do so:
#
# vagrant plugin install vagrant-vbguest
config.vm.synced_folder "../../..", "/flipt"
config.vm.synced_folder "../..", "/flipt"
end
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Flipt uses Go 1.12 with [Go Modules](https://github.com/golang/go/wiki/Modules)

You can also easily get started with a development environment running in a VM using [Vagrant](https://www.vagrantup.com/) and [Virtual Box](https://www.virtualbox.org/wiki/Downloads).

Once you have Vagrant and Virtual Box installed you can `cd` into either the `build/dev/ubuntu` or `build/dev/centos` directories and run `vagrant up`.
Once you have Vagrant and Virtual Box installed you can `cd` into either the `dev/ubuntu` or `dev/centos` directories and run `vagrant up`.

This will provision a VM that installs the necessary dev dependencies and runs the Flipt test suite.

Expand Down

0 comments on commit 5ed6d9a

Please sign in to comment.