github.com/terhitormanen/cmd@v1.1.4/.travis.yml (about) 1 language: go 2 3 go: 4 - "1.13.x" 5 - "1.14.x" 6 - "tip" 7 8 os: 9 - osx 10 - linux 11 - windows 12 13 sudo: false 14 15 branches: 16 only: 17 - master 18 - develop 19 20 env: 21 # Setting environments variables 22 - GO111MODULE=on 23 24 install: 25 - export PATH=$PATH:$HOME/gopath/bin 26 - export REVEL_BRANCH="develop" 27 - 'if [[ "$TRAVIS_BRANCH" == "master" ]]; then export REVEL_BRANCH="master"; fi' 28 - 'echo "Travis branch: $TRAVIS_BRANCH, Revel dependency branch: $REVEL_BRANCH"' 29 # Since travis already checks out go build the commandline tool (revel) 30 - mkdir $HOME/GOPATH_PROTECTED 31 - export GOPATH=$HOME/GOPATH_PROTECTED 32 - go build -o $HOME/gopath/bin/revel github.com/revel/cmd/revel 33 - pwd 34 - env 35 script: 36 - go test -v github.com/revel/cmd/revel/... 37 38 # Ensure the new-app flow works (plus the other commands). 39 #- revel version 40 #- revel new my/testapp 41 #- revel test my/testapp 42 #- revel clean my/testapp 43 #- revel build my/testapp build/testapp 44 #- revel build my/testapp build/testapp prod 45 #- revel package my/testapp 46 #- revel package my/testapp prod 47 48 # Ensure the new-app flow works (plus the other commands). 49 - revel new --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 --package revelframework.com -v 50 - revel test --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 -v 51 - revel clean --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 -v 52 - revel build --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 -v -t build/testapp2 53 - revel build --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 -v -t build/testapp2 -m prod 54 - revel package --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 -v 55 - revel package --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp2 -v -m prod 56 57 - export INITIALWD=$PWD 58 # Check build works with no-vendor flag 59 - cd $GOPATH 60 - export GO111MODULE=auto 61 - revel new -a my/testapp2 --no-vendor -v 62 - revel test -a my/testapp2 -v 63 64 # Check non verbose build, outside of GO path 65 - cd $INITIALWD 66 - revel new --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp3 --package revelframework.com 67 - revel test --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@$REVEL_BRANCH" -a my/testapp3 68 69 matrix: 70 allow_failures: 71 - go: tip 72 - os: windows