From 4c9848141c6a6337995d4d61a60fd74172de3941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Sat, 26 Jun 2021 14:18:25 +0800 Subject: [PATCH] update --- .codechina-ci.yml | 37 ------------------------------------- .codeeui.sh | 13 ------------- .drone.yml | 10 ---------- README.md | 3 --- 4 files changed, 63 deletions(-) delete mode 100644 .codechina-ci.yml delete mode 100644 .codeeui.sh delete mode 100644 .drone.yml diff --git a/.codechina-ci.yml b/.codechina-ci.yml deleted file mode 100644 index 25ead36..0000000 --- a/.codechina-ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This file is a template, and might need editing before it works on your project. -image: golang:latest - -variables: - # Please edit to your GitLab project - REPO_NAME: gitlab.com/namespace/project - -# The problem is that to be able to use go get, one needs to put -# the repository in the $GOPATH. So for example if your gitlab domain -# is gitlab.com, and that your repository is namespace/project, and -# the default GOPATH being /go, then you'd need to have your -# repository in /go/src/gitlab.com/namespace/project -# Thus, making a symbolic link corrects this. -before_script: - - mkdir -p $GOPATH/src/$(dirname $REPO_NAME) - - ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME - - cd $GOPATH/src/$REPO_NAME - -stages: - - test - - build - - deploy - -format: - stage: test - script: - - go fmt $(go list ./... | grep -v /vendor/) - - go vet $(go list ./... | grep -v /vendor/) - - go test -race $(go list ./... | grep -v /vendor/) - -compile: - stage: build - script: - - go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary - artifacts: - paths: - - mybinary diff --git a/.codeeui.sh b/.codeeui.sh deleted file mode 100644 index ae37371..0000000 --- a/.codeeui.sh +++ /dev/null @@ -1,13 +0,0 @@ -# 使用vendor文件夹构建 -export GO15VENDOREXPERIMENT=1 -export GOPROXY=https://goproxy.cn,direct -# 在工作目录创建源文件夹 -mkdir -p $GOPATH/src/dtapps/ -# 拷贝代码到创建好的目录 -cp -rf . $GOPATH/src/dtapps/ -# 进入项目 -cd $GOPATH/src/dtapps/ -# 构建,在GOPATH下生成构建包 -go mod tidy -# 列出文件 -ls -lh \ No newline at end of file diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index a1a5f78..0000000 --- a/.drone.yml +++ /dev/null @@ -1,10 +0,0 @@ -kind: pipeline -type: docker -name: default - -steps: - - name: dtapps - image: golang - commands: - - go mod tidy - - ls -lh diff --git a/README.md b/README.md index 646dc7a..0dc7cbb 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,6 @@ [comment]: <> (gitlab.com) [![gitlab (.com)](https://gitlab.com/dtapps/go-ssh-tunnel/badges/master/pipeline.svg)](https://gitlab.com/dtapps/go-ssh-tunnel) -[comment]: <> (codechina.csdn.net) -[![codechina.csdn (.net)](https://codechina.csdn.net/dtapps/go-ssh-tunnel/badges/master/pipeline.svg)](https://codechina.csdn.net/dtapps/go-ssh-tunnel) - ## 下载使用 - 把.example.config.yaml文件重命名为config.yaml -- GitLab