github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/cli/internal/plugins/ci/templates/travis.yml.tmpl (about)

     1  language: go
     2  
     3  go:
     4    - "1.14.x"
     5  
     6  env:
     7    - GO_ENV=test
     8    - GO111MODULE=on
     9  
    10  {{ if eq .Database "postgres" -}}
    11  services:
    12    - postgresql
    13  {{- end }}
    14  
    15  before_script:
    16  {{- if eq .Database "postgres" }}
    17    - psql -c 'create database {{.Name}}_test;' -U postgres
    18  {{- end }}
    19    - mkdir -p $TRAVIS_BUILD_DIR/public/assets
    20  
    21  go_import_path: {{.Name}}
    22  
    23  install:
    24    - go get github.com/gobuffalo/buffalo-cli/v2/cmd/buffalo@latest    
    25    - go mod download
    26  
    27  script: |
    28    buffalo test -v ./...