diff --git a/.travis.yml b/.travis.yml index 04072c16..74576435 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,13 +18,13 @@ script: before_deploy: - sudo apt-get -qq update - - CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build -o godoc_linux_amd64 -ldflags="-w -X github.com/lifei6671/godoc/conf.VERSION=$TRAVIS_TAG -X 'github.com/lifei6671/godoc/conf.BUILD_TIME=`date`' -X 'conf.GO_VERSION=`github.com/lifei6671/godoc/go version`'" + - CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build -o mindoc_linux_amd64 -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=$TRAVIS_TAG -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=`date`' -X 'conf.GO_VERSION=`github.com/lifei6671/mindoc/go version`'" - rm -rf commands controllers models modules data routers tasks vendor docs search utils graphics .git Godeps uploads/* .gitignore .travis.yml Dockerfile gide.yaml LICENSE main.go README.md conf/enumerate.go conf/mail.go install.lock *.md - cp conf/app.conf.example conf/app.conf - - zip -r godoc_linux_amd64.zip conf logs static uploads views lib godoc_linux_amd64 - - zip -r godoc_darwin_amd64.zip conf logs static uploads views lib godoc_darwin_amd64 - - zip -r godoc_windows_amd64.zip conf logs static uploads views lib godoc_windows_amd64.exe - - zip -r godoc_windows_i386.zip conf logs static uploads views lib godoc_windows_i386.exe + - zip -r mindoc_linux_amd64.zip conf logs static uploads views lib mindoc_linux_amd64 + - zip -r mindoc_darwin_amd64.zip conf logs static uploads views lib mindoc_darwin_amd64 + - zip -r mindoc_windows_amd64.zip conf logs static uploads views lib mindoc_windows_amd64.exe + - zip -r mindoc_windows_i386.zip conf logs static uploads views lib mindoc_windows_i386.exe deploy: @@ -32,7 +32,7 @@ deploy: api_key: $CI_USER_TOKEN skip_cleanup: true file: - - godoc_linux_amd64.zip + - mindoc_linux_amd64.zip on: overwrite: true tags: true diff --git a/Dockerfile b/Dockerfile index 9cf4a8fe..6a11a330 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ FROM golang:1.8.1-alpine RUN apk add --update bash git make gcc -ADD . /go/src/github.com/lifei6671/godoc +ADD . /go/src/github.com/lifei6671/mindoc -WORKDIR /go/src/github.com/lifei6671/godoc +WORKDIR /go/src/github.com/lifei6671/mindoc RUN chmod +x start.sh diff --git a/appveyor.yml b/appveyor.yml index e582e30f..bb6a4aa4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ version: "{build}" -clone_folder: c:\gopath\src\github.com\lifei6671\godoc +clone_folder: c:\gopath\src\github.com\lifei6671\mindoc environment: GOPATH: c:\gopath @@ -42,10 +42,10 @@ build_script: - set CGO_ENABLED=1 - glide update - for /f "delims=" %%i in ('go version') do (set GO_VERSION=%%i) - - go build -v -o "godoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/godoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/godoc/conf.BUILD_TIME=%date% %time%' -X 'conf.GO_VERSION=%GO_VERSION%'" - - 7z a -t7z -r godoc_windows_%GOARCH%.7z conf/*.conf* static/* godoc_windows_%GOARCH%.exe views/* uploads/* + - go build -v -o "mindoc_windows_%GOARCH%.exe" -ldflags="-w -X github.com/lifei6671/mindoc/conf.VERSION=%APPVEYOR_REPO_TAG_NAME% -X 'github.com/lifei6671/mindoc/conf.BUILD_TIME=%date% %time%' -X 'conf.GO_VERSION=%GO_VERSION%'" + - 7z a -t7z -r mindoc_windows_%GOARCH%.7z conf/*.conf* static/* mindoc_windows_%GOARCH%.exe views/* uploads/* test_script: - - godoc_windows_%GOARCH%.exe version + - mindoc_windows_%GOARCH%.exe version notifications: - provider: Email @@ -54,7 +54,7 @@ notifications: on_build_success: false artifacts: - - path: godoc_windows_%GOARCH%.7z + - path: mindoc_windows_%GOARCH%.7z name: Releases deploy: @@ -63,6 +63,6 @@ deploy: secure: "Qkhxloft5lBKti7O+vVS+Vrxh7CBAUVhlfdZ9ptBXjFtjt6jHXnaBA2uv2OYbISB" draft: false prerelease: false - artifact: godoc_windows_%GOARCH%.7z + artifact: mindoc_windows_%GOARCH%.7z on: appveyor_repo_tag: true \ No newline at end of file diff --git a/glide.yaml b/glide.yaml index b2087f76..9c0f32ba 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,4 +1,4 @@ -package: github.com/lifei6671/godoc +package: github.com/lifei6671/mindoc import: - package: github.com/astaxie/beego version: ^1.8.3 diff --git a/start.sh b/start.sh index 2ac2cc88..7ccac13f 100644 --- a/start.sh +++ b/start.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -cd /go/src/github.com/lifei6671/godoc/ +cd /go/src/github.com/lifei6671/mindoc/ if [ ! -f "conf/app.conf" ] ; then cp conf/app.conf.example conf/app.conf @@ -45,6 +45,6 @@ fi sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf -/go/src/github.com/lifei6671/godoc/godoc_linux_amd64 install +/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64 install -/go/src/github.com/lifei6671/godoc/godoc_linux_amd64 \ No newline at end of file +/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64 \ No newline at end of file