Commit Graph

180 Commits

Author SHA1 Message Date
Mahmood Ali
d575e1df29 Ignore apt-get update failures in CI
We run with ~120 apt sources, and apt-get update fails if any of them is
down.

True errors would be raised again at install phase as true dependencies
fetch would fail.
;
2018-11-13 10:21:40 -05:00
Chris Baker
0ce5a020c6 renamed vagrant script to accurately reflect non-privileged requirement 2018-10-05 10:07:05 -04:00
Chris Baker
bde95d81c3 vagrant: updated go_version to 1.11 in vagrant-linux go provisioning script 2018-10-04 19:06:35 -04:00
Alex Dadgar
fc43f8b13c Remove old protoc installer 2018-08-01 13:51:45 -07:00
Alex Dadgar
ea814c45e0 Add protoc to project 2018-08-01 13:50:08 -07:00
Chelsea Holland Komlo
06c79ee320 update to latest protoc version 2018-08-01 10:52:50 -04:00
Chelsea Holland Komlo
73c9560314 correct operating system 2018-07-31 15:44:02 -04:00
Chelsea Holland Komlo
cd1b453110 bootstrap vagrant development environment with protoc 2018-07-31 15:26:57 -04:00
Michael Lange
34b55aa6f1 Merge pull request #4410 from hashicorp/b-ui-update-vagrant
UI: update vagrant
2018-06-13 15:49:40 -07:00
Michael Lange
adf7f083e5 Add chrome to the ui vagrant machine
It's used for running acceptance tests
2018-06-12 17:44:53 -07:00
Alex Dadgar
e66314fb8b Vagrant 2018-06-12 09:40:10 -07:00
Alex Dadgar
5dcd952dde bump travis version 2018-06-12 09:39:31 -07:00
Michael Lange
ad6ba1ab9c Update nvm, node, and yarn in vagrant 2018-06-11 16:22:52 -07:00
Chelsea Holland Komlo
f935b4fb46 upgrade nomad to 1.10.2 2018-05-21 17:24:51 -04:00
Alex Dadgar
07cbe23b8c Bump versions 2018-04-13 16:16:16 -07:00
Michael Schurter
6e39736a56 Bump Go to 1.10 in Vagrantfile 2018-03-16 16:17:16 -07:00
Michael Schurter
ea860e929d Merge pull request #3819 from schmichael/qemu-graceful-shutdown-alpine
Test QEMU graceful shutdown
2018-02-12 12:32:14 -08:00
Wim
d0dd6ef22f Add IPv6 support to travis docker 2018-02-01 23:21:28 +01:00
Michael Schurter
60c98e4356 Skip QEMU graceful shutdown test except on Travis
Hopefully we can reuse the SkipSlow helper elsewhere.
2018-01-31 15:47:26 -08:00
Michael Schurter
7466e12a65 Update Consul/rkt/Vault in Vagrant
Needed to update Vault for #3334
2018-01-09 15:57:42 -08:00
Preetha
781408bbf4 Merge branch 'master' into 0.8 2018-01-03 16:06:38 -06:00
Michael Lange
bd23d4989b Lock down nodejs version
The new Travis Trusty image uses node 8 (latest LTS) as the default.
Node 8 is incompatible with some modules used for the UI.
2017-12-15 10:50:06 -08:00
Preetha Appan
9abe84824d Merge branch 'master' into 0.8 2017-12-12 15:49:47 -06:00
Michael Schurter
255b899a45 chown $GOPATH for vagrant user 2017-12-11 17:06:07 -08:00
Preetha Appan
805ade7d34 Makes tests on travis not run in verbose mode. 2017-12-06 13:30:31 -06:00
Alex Dadgar
e6df21b621 bump go 2017-11-14 15:06:41 -08:00
Alex Dadgar
5ee8609655 Run linters 2017-11-02 16:37:46 -07:00
Alex Dadgar
0aa838d48f show env 2017-11-02 16:24:15 -07:00
Alex Dadgar
7fab0e1c9e seperate linting from testing 2017-10-24 10:52:26 -07:00
Alex Dadgar
1654d20a4d bump vault and install on darwin 2017-10-21 17:23:42 -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
34af514b3c install to local bin 2017-10-19 16:49:58 -07:00
Alex Dadgar
089312ddd4 Rm upgrading go 2017-10-19 16:49:58 -07:00
Alex Dadgar
015fe02116 split privilidged calls to two scripts 2017-10-19 16:49:58 -07:00
Alex Dadgar
a00636e355 travis 2017-10-19 16:49:58 -07:00
Michael Schurter
ab862b06d9 Bump Consul to 1.0.0 in vagrant/travis 2017-10-16 14:10:39 -07:00
Lasse Dalegaard
5cd1d19cc8 Add rkt default network to Travis
The current Travis setup scripts copy in rkt, but do not set up a
default container network.

Here we copy the container network setup over from the vagrant setup
scripts.
2017-09-26 22:20:01 +02:00
Lasse Dalegaard
dd934a60a7 Bump minimum rkt version to 1.27.0.
The changes introduces in #3256 require at least rkt 1.27.0 because of
a bug in the JSON output of `rkt status` in previous versions.

Here we upgrade all references to rkt's minimum version, and also make
travis and vagrant use this version when running tests.

Finally we add a CHANGELOG notice.
2017-09-26 19:15:43 +02:00
Michael Schurter
9c87332b71 Fix shellcheck's complaints about find loop 2017-09-19 17:41:20 -05:00
Alex Dadgar
fd57773121 Release v0.7.0-beta1 2017-09-19 12:56:28 -05:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00
Michael Schurter
7e3d975b71 Fix permissions of $GOPATH in Vagrantfile
Technically just the true->false is needed. The `chown -R` was a first
attempt that didn't fix the bug, but it's a nice simplification.
2017-09-11 22:38:10 -07: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
9ec82bc545 build: Install Go in Vagrant from official release 2017-09-08 19:46:07 -05:00
James Nugent
ea50afc4a5 build: Fix Travis following Vagrant changes 2017-09-08 19:45:41 -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
Alex Dadgar
2010b636c8 bump consul version 2017-08-23 10:45:54 -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
Alex Dadgar
c26ecb7092 Add version package
This PR adds a version package and consolidates version strings into a
Version struct.
2017-08-16 15:44:21 -07:00
Alex Dadgar
296f1ee5cf reset travis script 2017-07-22 22:25:20 -07:00