Enable go module support for go environment (#1152)

This commit is contained in:
Ta-Ching Chen
2019-07-10 14:00:29 +08:00
committed by GitHub
parent 9e7dd5aa27
commit 58722f849a
46 changed files with 130 additions and 6538 deletions
+3 -3
View File
@@ -55,10 +55,10 @@ timeout 60 bash -c "test_fn $fn_poolmgr 'Hello'"
log "Testing new deployment function"
timeout 60 bash -c "test_fn $fn_nd 'Hello'"
# Create zip file without top level directory (vendor-example)
cd vendor-example && zip -r $tmp_dir/vendor.zip *
# Create zip file without top level directory (module-example)
cd module-example && zip -r $tmp_dir/module.zip *
pkgName=$(fission package create --src $tmp_dir/vendor.zip --env $env| cut -f2 -d' '| tr -d \')
pkgName=$(fission package create --src $tmp_dir/module.zip --env $env| cut -f2 -d' '| tr -d \')
# wait for build to finish at most 90s
timeout 90 bash -c "waitBuild $pkgName"