Browse Source

ci script use -insecure flag too

vcptr 6 years ago
parent
commit
6233a1e6d9
4 changed files with 7 additions and 7 deletions
  1. 1 1
      azure-pipelines.template.yml
  2. 3 3
      azure-pipelines.yml
  3. 1 1
      release/install.sh
  4. 2 2
      release/release-ci.sh

+ 1 - 1
azure-pipelines.template.yml

@@ -9,7 +9,7 @@ jobs:
   - checkout: self
   - task: GoTool@0
     inputs:
-      version: '1.12'
+      version: '1.13'
   - script: |
       go test -p 1 -v -timeout 30m ./...
     workingDirectory: '$(Build.SourcesDirectory)'

+ 3 - 3
azure-pipelines.yml

@@ -37,7 +37,7 @@ jobs:
   - checkout: self
   - task: GoTool@0
     inputs:
-      version: '1.12'
+      version: '1.13'
   - script: |
       bash ./testing/coverage/coverall
     workingDirectory: '$(Build.SourcesDirectory)'
@@ -59,14 +59,14 @@ jobs:
   - checkout: none
   - task: GoTool@0
     inputs:
-      version: '1.12'
+      version: '1.13'
   - script: |
       sudo apt-get -y update
       sudo apt-get -y install jq git file pkg-config zip g++ zlib1g-dev unzip python openssl
     displayName: Apt Install
   - script: |
       go version
-      go get -v -t -d v2ray.com/core/...
+      go get -insecure -v -t -d v2ray.com/core/...
     workingDirectory: '$(system.defaultWorkingDirectory)'
     displayName: 'Fetch sources'
   - script: |

+ 1 - 1
release/install.sh

@@ -21,6 +21,6 @@ if [ -z "$GOPATH" ]; then
   export GOPATH=/v2ray
 fi
 
-go get -u v2ray.com/core/...
+go get -insecure -u v2ray.com/core/...
 go build -o $GOPATH/bin/v2ray v2ray.com/core/main
 go build -o $GOPATH/bin/v2ctl v2ray.com/core/infra/control/main

+ 2 - 2
release/release-ci.sh

@@ -46,8 +46,8 @@ mkdir -p /v2/src
 export GOPATH=/v2
 
 # Download all source code
-go get -t v2ray.com/core/...
-go get -t v2ray.com/ext/...
+go get -insecure -t v2ray.com/core/...
+go get -insecure -t v2ray.com/ext/...
 
 pushd $GOPATH/src/v2ray.com/core/
 git checkout tags/${RELEASE_TAG}