With https://git.opendaylight.org/gerrit/#/c/72855/
COE will switch from glide to dep. Adapt to the
same change in CSIT as well. The current playbook
fetches the above patch so that we can test this in sandbox.
Once verified, the patch checkout will be removed.
Change-Id: I59901cdd909aa40e4de5f0b97b32c1b9a83333ac
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Signed-off-by: Frederick F. Kautz IV <fkautz@redhat.com>
file:
path: "{{ ansible_env.HOME }}/go/bin"
state: directory
file:
path: "{{ ansible_env.HOME }}/go/bin"
state: directory
- - name: Install glide
- shell: curl https://glide.sh/get | sh
+ - name: Install dep
+ shell: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- creates: "{{ gopath }}/bin/glide"
+ creates: "{{ gopath }}/bin/dep"
- name: Fetch COE git repository
git:
repo: 'https://git.opendaylight.org/gerrit/p/coe.git'
dest: "{{ coe_path }}"
- name: Fetch COE git repository
git:
repo: 'https://git.opendaylight.org/gerrit/p/coe.git'
dest: "{{ coe_path }}"
- - name: Fetch odl-cni dependencies with glide
- shell: glide install -v
+ - name: Fetch COE dep patch
+ shell: git config --add user.name "vagrant" && git config --add user.email "coe@local" && git fetch https://git.opendaylight.org/gerrit/coe refs/changes/55/72855/4 && git cherry-pick FETCH_HEAD && touch /tmp/coe-patched
+ args:
+ chdir: "{{ coe_path }}"
+ creates: /tmp/coe-patched
+ - name: Fetch odl-cni dependencies with dep
+ shell: dep ensure -vendor-only
args:
chdir: "{{ coe_path }}/odlCNIPlugin/odlovs-cni"
creates: "{{ coe_path }}/odlCNIPlugin/odlovs-cni/vendor"
args:
chdir: "{{ coe_path }}/odlCNIPlugin/odlovs-cni"
creates: "{{ coe_path }}/odlCNIPlugin/odlovs-cni/vendor"
GOPATH: "{{ gopath }}"
GOROOT: /usr/local/go
tasks:
GOPATH: "{{ gopath }}"
GOROOT: /usr/local/go
tasks:
- - name: Fetch watcher dependencies with glide
- shell: glide install -v
+ - name: Fetch watcher dependencies with dep
+ shell: dep ensure -vendor-only
args:
chdir: "{{ coe_path }}/watcher"
creates: "{{ coe_path }}/watcher/vendor"
args:
chdir: "{{ coe_path }}/watcher"
creates: "{{ coe_path }}/watcher/vendor"