Commit Graph

27 Commits

Author SHA1 Message Date
brian m. carlson
f7b1df79be
circleci: remove blank lines from config
CircleCI refuses to accept a configuration file with blank lines,
claiming that it is a version 1.0 configuration file, despite the
command-line tool accepting it as a valid version 2.0 file. To please it
and restore our CI configuration to functionality, remove the blank
lines.

Note that the YAML specification does permit blank lines, even if
CircleCI does not.
2019-07-11 23:10:05 +00:00
Taylor Blau
9cb4c63183 .circleci: don't use 'brew prune'
In the latest release of Homebrew (which Circle CI has upgraded to for
us) the command `brew prune` has been removed.

In order to stop failing our Circle CI builds, let's remove this
invocation.

The recommended alternative is to run 'brew cleanup', but this is
unnecessary: Homebrew 2.0 already does this for us, so repeating it here
is unnecessary.
2019-02-05 18:58:35 -08:00
Taylor Blau
114e85c200 all: use Go Modules instead of Glide
Since we are now building on Go 1.11 (as of 074a2d4f (all: use Go 1.11
in CI, 2018-08-28)) and Go 1.11 supports Go Modules [1], let's stop
using Glide, and begin using Go Modules.

This involves a few things:

  * Teach the Makefile how to build go.sum files instead of glide.lock
    files.

  * Teach continuous integration services to build Git LFS in a
    non-$GOPATH environment, since (without setting GO111MODULE=on
    explicitly, which we choose not to do), this will break compiling
    Git LFS, because Go 1.11 will ignore modules present in a Go
    checkout beneath $GOPATH.

  * In order to do the above, let's also make sure that we are
    un-setting $GOCACHE in the environment, as this causes Go to work
    without modules support [2].

  * Because we're no longer building in a `$GOPATH`-based location,
    let's instruct the CircleCI base image to archive the new location,
    too.

  * Similarly, teach the RPM spec to build in a non-$GOPATH location.

  * By contrast, since we use dh_golang to build git-lfs binaries on
    Debian, let's wait until the upstream dh_golang package is released
    with support for Go 1.11 module support explicitly. Therefore, force
    GO111MODULE to be on so that we can build a copy of Git LFS whose
    checkout is within a $GOPATH.

Although the go.mod versions match the glide.yaml ones, the diff
attached is large because Go Modules do not vendor `_test.go` files,
whereas Glide does.

[1]: https://golang.org/doc/go1.11#modules
[2]: `GOCACHE=on` will be deprecated in Go 1.12, so this change makes
     sense for that reason, too.

Co-authored-by: brian m. carlson <bk2204@github.com>
2018-08-29 13:25:47 -04:00
Taylor Blau
dd1a9967d2 .circleci/config.yml: use installed Git 2018-03-20 18:30:17 -04:00
Taylor Blau
d586f9f1ea .circleci/config.yml: don't link git 2018-03-20 16:13:56 -04:00
Taylor Blau
7905f607ea .circleci/config.yml: install git-source to correct location 2018-03-20 14:32:13 -04:00
Taylor Blau
35464d51d5 .circleci/config.yml: $USER does not have access to /var 2018-03-20 14:20:50 -04:00
Taylor Blau
e494a9e06c .circleci/config.yml: fix incorrect YAML 2018-03-20 12:28:17 -04:00
Taylor Blau
53ba714a1e .circleci/config.yml: unmodified GOPATH 2018-03-20 12:21:08 -04:00
Taylor Blau
b2b0d87933 .circleci/config.yml: don't escape too early 2018-03-20 12:04:43 -04:00
Taylor Blau
4bce48d646 .circleci/config.yml: checkout correct revision 2018-03-20 11:10:11 -04:00
Taylor Blau
b9aa9cd267 .circleci/config.yml: fix incorrect GOPATH 2018-03-19 15:01:36 -04:00
Taylor Blau
cb0267a6fa .circleci/config.yml: fix working directory 2018-03-19 14:55:32 -04:00
Taylor Blau
d12af82497 .circleci/config.yml: link into ~/git-lfs (for real) 2018-03-19 14:52:55 -04:00
Taylor Blau
b62911f594 .circleci/config.yml: break cache, symlink into ~/git-lfs 2018-03-19 14:22:19 -04:00
Taylor Blau
1a9e1a31ae .circleci/config.yml: a few changes 2018-03-19 14:01:08 -04:00
Taylor Blau
1aab1d24df .circleci/config.yml: add metacharacters via $BASH_ENV 2018-03-19 13:30:45 -04:00
Taylor Blau
2ff265cd88 .circleci/config.yml: add $GOPATH, fix $HOME references 2018-03-19 13:15:07 -04:00
Taylor Blau
6ad69a54f0 .circleci/config.yml: do not run 'script/bootstrap' 2018-03-19 12:33:51 -04:00
Taylor Blau
69aef87ecf .circleci/config.yml: link thrice, not once 2018-03-19 11:07:53 -04:00
Taylor Blau
7069f27535 .circleci/config.yml: cache builds based on branch 2018-03-19 10:59:53 -04:00
Taylor Blau
125ba5ffa6 .circleci/config.yml: use {save,restore}_cache 2018-03-19 10:52:34 -04:00
Taylor Blau
8f6d448428 .circleci/config.yml: run checkout each time 2018-03-19 10:41:44 -04:00
Taylor Blau
c46363a69f .circleci/config.yml: relativize commands and paths 2018-03-19 10:34:48 -04:00
Taylor Blau
727c6f2cc4 .circleci/config.yml: localize working directory 2018-03-19 10:28:41 -04:00
Taylor Blau
62ed536e68 .circleci/config.yml: add 'jobs' section to workflow 2018-03-19 10:25:46 -04:00
Taylor Blau
57c9442b56 circle.yml: move to .circleci directory 2018-03-19 10:20:39 -04:00