github.com/wiselike/revel-cmd@v1.2.1/.travis.yml (about)

     1  language: go
     2  
     3  go:
     4    - "1.18.x"
     5    - "1.17.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/wiselike/revel-cmd/revel
    33    - pwd
    34    - env
    35  script:
    36    - go test -v github.com/wiselike/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/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp2 --package revelframework.com -v
    50    - revel test    --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp2 -v
    51    - revel clean   --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp2 -v
    52    - revel build   --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp2 -v -t build/testapp2
    53    - revel build   --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp2 -v -t build/testapp2 -m prod
    54    - revel package --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp2 -v
    55    - revel package --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/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/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp3 --package revelframework.com
    67    - revel test    --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp3
    68  
    69    # Check vendored version of revel
    70    - cd $INITIALWD
    71    - revel new     --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp4 --package revelframework.com
    72    - cd my/testapp4
    73    - go mod vendor
    74    - cd ../..
    75    - revel test    --gomod-flags "edit -replace=github.com/wiselike/revel=github.com/wiselike/revel@$REVEL_BRANCH" -a my/testapp4
    76  
    77  matrix:
    78    allow_failures:
    79      - go: tip
    80      - os: windows