summaryrefslogtreecommitdiff
path: root/contrib/test/integration/golang.yml
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-01 11:24:59 -0400
committerMatthew Heon <matthew.heon@gmail.com>2017-11-01 11:24:59 -0400
commita031b83a09a8628435317a03f199cdc18b78262f (patch)
treebc017a96769ce6de33745b8b0b1304ccf38e9df0 /contrib/test/integration/golang.yml
parent2b74391cd5281f6fdf391ff8ad50fd1490f6bf89 (diff)
downloadpodman-a031b83a09a8628435317a03f199cdc18b78262f.tar.gz
podman-a031b83a09a8628435317a03f199cdc18b78262f.tar.bz2
podman-a031b83a09a8628435317a03f199cdc18b78262f.zip
Initial checkin from CRI-O repo
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'contrib/test/integration/golang.yml')
-rw-r--r--contrib/test/integration/golang.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/contrib/test/integration/golang.yml b/contrib/test/integration/golang.yml
new file mode 100644
index 000000000..63e556977
--- /dev/null
+++ b/contrib/test/integration/golang.yml
@@ -0,0 +1,51 @@
+---
+
+- name: fetch Golang
+ unarchive:
+ remote_src: yes
+ src: https://storage.googleapis.com/golang/go1.8.4.linux-amd64.tar.gz
+ dest: /usr/local
+
+- name: link go toolchain
+ file:
+ src: "/usr/local/go/bin/{{ item }}"
+ dest: "/usr/bin/{{ item }}"
+ state: link
+ with_items:
+ - go
+ - gofmt
+ - godoc
+
+- name: ensure user profile exists
+ file:
+ path: "{{ ansible_user_dir }}/.profile"
+ state: touch
+
+- name: set up PATH for Go toolchain and built binaries
+ lineinfile:
+ dest: "{{ ansible_user_dir }}/.profile"
+ line: 'PATH={{ ansible_env.PATH }}:{{ ansible_env.GOPATH }}/bin:/usr/local/go/bin'
+ regexp: '^PATH='
+ state: present
+
+- name: set up directories
+ file:
+ path: "{{ item }}"
+ state: directory
+ with_items:
+ - "{{ ansible_env.GOPATH }}/src/github.com/containernetworking"
+ - "{{ ansible_env.GOPATH }}/src/github.com/kubernetes-incubator"
+ - "{{ ansible_env.GOPATH }}/src/github.com/k8s.io"
+ - "{{ ansible_env.GOPATH }}/src/github.com/sstephenson"
+ - "{{ ansible_env.GOPATH }}/src/github.com/opencontainers"
+
+- name: install Go tools and dependencies
+ shell: /usr/bin/go get -u "github.com/{{ item }}"
+ with_items:
+ - tools/godep
+ - onsi/ginkgo/ginkgo
+ - onsi/gomega
+ - cloudflare/cfssl/cmd/...
+ - jteeuwen/go-bindata/go-bindata
+ - vbatts/git-validation
+ - cpuguy83/go-md2man