mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Build and Historic build updates
Modified GOPATH to not modify build with go.mod Updated go.mod to version 1.12 Updated harness to setup listener before killing process Updated notvendored flag to --no-vendor Updated command_config to ensure no-vendor can be build Added additional checks in source path lookup
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -28,10 +28,11 @@ install:
|
||||
- 'if [[ "$TRAVIS_BRANCH" == "master" ]]; then export REVEL_BRANCH="master"; fi'
|
||||
- 'echo "Travis branch: $TRAVIS_BRANCH, Revel dependency branch: $REVEL_BRANCH"'
|
||||
# Since travis already checks out go build the commandline tool (revel)
|
||||
- go get -v github.com/revel/cmd/revel
|
||||
- echo $GOPATH
|
||||
- echo $PATH
|
||||
- mkdir $HOME/GOPATH_PROTECTED
|
||||
- export GOPATH=$HOME/GOPATH_PROTECTED
|
||||
- go build -o $HOME/gopath/bin/revel github.com/revel/cmd/revel
|
||||
- pwd
|
||||
- env
|
||||
script:
|
||||
- go test -v github.com/revel/cmd/revel/...
|
||||
|
||||
@@ -54,6 +55,12 @@ script:
|
||||
- revel package --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@develop" -a my/testapp2 -v
|
||||
- revel package --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@develop" -a my/testapp2 -v -m prod
|
||||
|
||||
# Check build works with no-vendor flag
|
||||
- cd $GOPATH
|
||||
- export GO111MODULE=auto
|
||||
- revel new -a my/testapp2 --no-vendor
|
||||
- revel test -a my/testapp2
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
||||
Reference in New Issue
Block a user