Commit Graph

69 Commits

Author SHA1 Message Date
Michael Lange
fbe20ac2bf Run yarn silently during make ember-dist 2018-03-20 11:31:35 -07:00
Michael Schurter
82fb214f93 Fix generating static assets
Broke due to a change in go-bindata-assetfs
2018-03-19 15:52:38 -07:00
Preetha Appan
47c039cbbe Disables verbose mode in travis 2018-02-20 18:38:18 -06:00
Preetha Appan
552cf8073d Make tests in travis be verbose 2018-02-14 10:42:57 -06:00
Alex Dadgar
5fad2288b7 Switches to HashiCorp fork of jteeuwen/go-bindata.
We make a HashiCorp hard fork of the jteeuwen/go-bindata hard fork that
was replaced and diffed the code against a Dec 1, 2015 copy of the
original repository we had as a cross-check of that hard fork.

This replaces references to jteeuwen/go-bindata to point to the
HashiCorp fork.
2018-02-07 09:48:57 -08:00
Michael Lange
ab5cec4e1b Lock down yarn version 2018-01-17 09:02:04 -08:00
Preetha Appan
ebbbf432e4 Add changelog formatting to make dev 2018-01-03 16:38:41 -06:00
Preetha Appan
99e896da2d Linkify changelog issues 2017-12-12 15:52:58 -06:00
Preetha Appan
120f13bd78 Changes vendor.json to one dependency per line 2017-12-12 10:30:36 -06:00
Preetha Appan
7f6c7bee1a Removes variable value printer 2017-12-06 18:29:25 -06:00
Preetha Appan
c8b5b204ab Remove newline 2017-12-06 13:36:46 -06:00
Preetha Appan
805ade7d34 Makes tests on travis not run in verbose mode. 2017-12-06 13:30:31 -06:00
Alex Dadgar
d7071a008a drop gas 2017-12-04 13:07:24 -08:00
Charlie Voiselle
bf1e314d70 Makefile typos 2017-11-13 14:57:17 -05:00
Michael Lange
822cb6d334 Make make dev-ui work as expected 2017-11-10 13:27:48 -08:00
Michael Schurter
f84bd23e7a Fix git commit build flag 2017-11-03 16:01:01 -07:00
Preetha
ba32beb951 Merge pull request #3477 from hashicorp/verbose_test
Run test with verbose mode and log to a file
2017-11-01 15:02:27 -05:00
Preetha Appan
a187491693 Also search for panics and output 10 lines of context around it 2017-11-01 13:53:03 -05:00
Alex Dadgar
ed2beb1601 fix tags 2017-10-31 14:52:01 -07:00
Preetha Appan
a66fc52deb Run test with verbose mode and log to a file 2017-10-31 12:38:29 -05:00
Alex Dadgar
c873969555 document release procedure 2017-10-26 10:08:19 -07:00
Alex Dadgar
6526e2ee02 add static ui assets 2017-10-25 17:01:26 -07:00
Alex Dadgar
eedbe02f06 Merge pull request #3435 from hashicorp/f-travis-seperate
seperate linting from testing
2017-10-25 16:31:55 -07:00
Alex Dadgar
7fab0e1c9e seperate linting from testing 2017-10-24 10:52:26 -07:00
Alex Dadgar
ac6fc9b150 Build nomad before testing 2017-10-24 09:35:51 -07:00
Alex Dadgar
8accabcd87 move to consul freeport implementation 2017-10-23 16:51:40 -07:00
Alex Dadgar
e1b1465081 Standardize retrieving a free port into a helper package 2017-10-23 16:48:20 -07:00
Alex Dadgar
c231089cfd Only check scripts on linux and don't double lint 2017-10-19 16:49:58 -07:00
Alex Dadgar
d54cb92c70 check lxc properly 2017-10-19 15:53:19 -07:00
Alex Dadgar
b84472f5c5 Spell check website 2017-09-27 11:14:37 -07:00
Alex Dadgar
a9e3a41407 Enable more linters 2017-09-26 15:26:33 -07:00
Alex Dadgar
b02cce0efc fix metalinter checking ui dir 2017-09-19 11:49:34 -05:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00
James Nugent
e8c17e2aba build: Lint shell scripts, and make all shell scripts lint cleanly 2017-09-08 19:50:39 -05:00
James Nugent
f8ff0463b0 build: Rework Vagrant to support multiple OS boxes
This commit reworks the Vagrantfile for Nomad in order to support
straightforward testing on more than one operating system, whilst
retaining the ability to stand up a test cluster running Ubuntu.

The following changes are made:

- Scripts have been extracted from the Vagrantfile into their own shell
  script files, in order that editors lint them.

- All scripts have been edited to lint with no warnings or errors for
  their respective shells.

- Scripts are named according to the operating system and privilege
  level which they run. We prefer to run a whole shell script as root
  versus prefixing (essentially) every command with `sudo` or an
  equivalent.

- The Linux development box has been separated from the test cluster,
  removing some of the more gnarly (and less portable) logic. The Linux
  development box is still primary and autostarts.

- A FreeBSD target has been added. The base box works for both
  Virtualbox and VMWare Fusion.

- A target is added to the GNUmakefile to stand up a test cluster, using
  the default provider, or overriding the provider by setting the PROVIDER
  variable in make:
	- `make testcluster`
	- `make testcluster PROVIDER=vmware_fusion`

- Machines in the test cluster have Avahi configured for zeroconf
  discovery. Each machine can ping each other machine at `hostname.local`
  - for example `nomad-server02.local`, `nomad-client03.local`.
2017-09-08 19:45:38 -05:00
James Nugent
5a30dbd8fd build: Add build targets for FreeBSD/amd64 2017-09-08 18:40:26 -05:00
Alex Dadgar
3e34a230a0 Fix Windows AMD64 build architecture 2017-09-05 17:23:21 -07:00
Chelsea Holland Komlo
2bfc47a6cf add .exe file extensions for windows builds 2017-08-29 19:15:55 +00:00
Alex Dadgar
48f7dfbaff fix zip structure 2017-08-28 22:29:49 -07:00
Alex Dadgar
7540f4779b fix lxc 2017-08-21 17:43:51 -07:00
Alex Dadgar
d6b0350dbe remove printing of GOOS for generate 2017-08-21 15:18:24 -07:00
James Nugent
dcdc91fb6b build: Replace shell scripts with GNUmakefile
This commit replaces the shell script-driven build process for Nomad
with one based around GNU Make (note we _do_ use GNU-specific
constructs), requiring no additional scripts for common cases of
development. The following targets are implemented:

Per-OS/arch combinations:

    Binaries (Host - Mac OS X):
	pkg/darwin_amd64/nomad

    Binaries (Host - Linux):
	pkg/linux_386/nomad
	pkg/linux_amd64/nomad
	pkg/linux_amd64-lxc/nomad
	pkg/linux_arm/nomad
	pkg/linux_arm64/nomad
	pkg/windows_386/nomad
	pkg/windows_amd64/nomad

    Packages (Host - Mac OS X):
	pkg/darwin_amd64.zip

    Packages (Host - Linux):
	pkg/linux_386.zip
	pkg/linux_amd64.zip
	pkg/linux_amd64-lxc.zip
	pkg/linux_arm.zip
	pkg/linux_arm64.zip
	pkg/windows_386.zip
	pkg/windows_amd64.zip

Phony targets:

	dev - Builds for the current host GOOS/GOARCH (unless overriden
	      in the environment)

	release - Builds all appropriate release packages for the
	          current host GOOS/GOARCH (i.e. Windows and Linux
		  packages on a Linux host, Darwin packages on an OSX
		  host)

	generate - Generate code for the current host architecture using
	           `go generate`.

	test - Runs the Nomad test suite

	clean - Removes build artifacts

	travis - Runs `make test` with the wrapper script to prevent
	         Travis CI from timing out.

	help - Displays usage information about commonly used targets.

Note that there are some semantic differences from the previous version.

1. `generate` is no longer a dependency of `dev` builds. This is because
   it causes a rebuild every time, even when no code has changed, since
   `go generate` does not appear to leave file timestamps alone.
   Regardless, it is insufficient to generate on one host OS - it needs
   to be run on each target to ensure everything is generated correctly.

2. `gofmt` is no longer checked. This should be enabled as a linter once
   the `gofmt -s` refactoring will pass on the whole code base, in order
   to avoid special cased checks versus using go-metalinter.

Example Usages:

Make a development build for the current GOOS/GOARCH:

	make dev

Make release build packages appropriate for the host OS:

	make release

Update generated code for the host OS:

	make generate

Run linting checks:

	make check

Build a specific alternative GOOS/GOARCH/tags combination:

	make pkg/linux_amd64-pkg/nomad
	make pkg/linux_amd64-pkg.zip
2017-08-18 06:29:26 +01:00
Michael Schurter
2cceedd459 Revert "Rename GNUMakefile to Makefile"
This reverts commit 9f2ea92877.
2017-08-03 09:23:53 -07:00
Seth Vargo
9f2ea92877 Rename GNUMakefile to Makefile 2017-08-01 21:57:45 -04:00
James Nugent
a519340eaf build: Remove gox as a tool dependency
gox has not been used since commit 1aec23bb8, so there is no need to
install it during bootstrap.
2017-07-29 16:31:20 -05:00
Alex Dadgar
1a31cf15ed Merge pull request #2442 from jen20/deps-test-vault
build: Add Vault as an external test dependency
2017-03-16 15:10:05 -07:00
James Nugent
ec91903cab build: Add Vault as an external test dependency
Vault is required for the fingerprinting tests but is not currently
installed by the build process. This commit adds a new category of
external tools for test dependencies and `go get`'s them during the
bootstrap.

We also fix the syntax of the Makefile to use tabs throughout.
2017-03-13 17:14:48 -05:00
Michael Schurter
1097113f83 make bin creates a release binary for the host arch
make dev properly copies the binary into bin/ again.

make release still creates binaries for as many archs as possible.

Fixes #2407
2017-03-08 17:42:28 -08:00
Alex Dadgar
50fafa2808 Fix lint errors 2017-03-02 21:03:05 -08:00
Alex Dadgar
07f7e19578 Fix vet script and fix vet problems
This PR fixes our vet script and fixes all the missed vet changes.

It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00