Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Use machine builder
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed May 17, 2019
1 parent cd958bb commit e3f0555
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
33 changes: 23 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,40 @@
version: 2
jobs:
build:
working_directory: /go/src/github.com/weaveworks/flux
docker:
- image: circleci/golang:1.10
- image: memcached
working_directory: ~/go/src/github.com/weaveworks/flux
machine: true
environment:
GO_VERSION: 1.12.5
GOPATH: /home/circleci/go
PATH: /bin:/usr/bin:/usr/local/go/bin:/home/circleci/go/bin
steps:
- checkout
- setup_remote_docker

- run:
# Ensure latest version of git
name: Install Golang
command: |
curl -OL https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz
tar -xf go${GO_VERSION}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo mv go /usr/local
mkdir -p "$HOME/go/bin"
go version
- run:
name: Update packages and Start Memcached
command: |
echo "deb http://deb.debian.org/debian stretch-backports main" | sudo tee -a /etc/apt/sources.list.d/stretch-backports.list
sudo rm /etc/apt/sources.list.d/circleci_trusty.list /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install -t stretch-backports -y --only-upgrade git
sudo apt-get install -y git rng-tools docker-ce memcached
git version
- run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
docker version
- run:
name: Install Dep
command: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- run: dep ensure -vendor-only
- run: make check-generated
- run: make test TEST_FLAGS="-race -tags integration -timeout 60s"
- run: make all
- run: make e2e

- deploy:
name: Maybe push prerelease images
command: |
Expand Down
2 changes: 1 addition & 1 deletion gpg/gpgtest/gpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func GPGKey(t *testing.T) (string, string, func()) {
t.Fatal(err)
}

gpgCmd := exec.Command("gpg", "--homedir", newDir, "--list-keys", "--with-colons")
gpgCmd := exec.Command("gpg", "--homedir", newDir, "--list-keys", "--with-colons", "--with-fingerprint")
grepCmd := exec.Command("grep", "^fpr")
cutCmd := exec.Command("cut", "-d:", "-f10")

Expand Down

0 comments on commit e3f0555

Please sign in to comment.