Migrate from godep to go modules
[integration/test.git] / csit / variables / coe / coe_play.yaml
index bf00bbcbfa5ce3d17b0a7044d2dd93f1e27e346f..324dbde3ac18ea7e6860ddf48a02a171f978367b 100644 (file)
       file:
         path: "{{ ansible_env.HOME }}/go/bin"
         state: directory
-    - name: Install dep
-      shell: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
-      args:
-        creates: "{{ gopath }}/bin/dep"
     - name: Show gerrit details
       run_once: true
       debug:
       run_once: true
       debug:
         var=git_log_output.stdout_lines
-    - 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"
     - name: Build odlovs-cni
-      shell: go build
+      shell: GO111MODULE=on go build
       args:
         chdir: "{{ coe_path }}/odlCNIPlugin/odlovs-cni"
         creates: "{{ coe_path }}/odlCNIPlugin/odlovs-cni/odlovs-cni"
     GOPATH: "{{ gopath }}"
     GOROOT: /usr/local/go
   tasks:
-    - name: Fetch watcher dependencies with dep
-      shell: dep ensure -vendor-only
-      args:
-        chdir: "{{ coe_path }}/watcher"
-        creates: "{{ coe_path }}/watcher/vendor"
     - name: Build watcher
-      shell: go build
+      shell: GO111MODULE=on go build
       args:
         chdir: "{{ coe_path }}/watcher"
         creates: "{{ coe_path }}/watcher/watcher"