github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/ci/templates/-dot-travis.yml.tmpl (about) 1 language: go 2 3 go: 4 - "1.11.x" 5 6 env: 7 - GO_ENV=test 8 9 {{ if eq .opts.DBType "postgres" -}} 10 services: 11 - postgresql 12 {{- end }} 13 14 before_script: 15 {{- if eq .opts.DBType "postgres" }} 16 - psql -c 'create database {{.opts.App.Name.File}}_test;' -U postgres 17 {{- end }} 18 - mkdir -p $TRAVIS_BUILD_DIR/public/assets 19 20 go_import_path: {{.opts.App.PackagePkg}} 21 22 install: 23 - go get github.com/gobuffalo/buffalo/buffalo 24 - go mod download 25 26 script: buffalo test