Skip to content

Commit

Permalink
Simplify ci config. roles test needs no test db.
Browse files Browse the repository at this point in the history
  • Loading branch information
raven-chen committed Oct 8, 2020
1 parent 99cabaa commit 27691fa
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .travis.yml
Expand Up @@ -2,24 +2,5 @@ language: go
go:
- "1.13"

services:
- mysql
- postgresql

env:
- GO111MODULE=on

before_install:
- mysql -e "CREATE DATABASE IF NOT EXISTS qor_test;"
- mysql -e "GRANT ALL PRIVILEGES ON qor_test.* TO 'qor'@'localhost' IDENTIFIED BY 'qor'"
- psql -c 'create database qor_test;' -U postgres
- psql -c "CREATE USER qor WITH ENCRYPTED PASSWORD 'qor'" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE qor_test TO qor" -U postgres
- go get -t -v ./...

script:
- go get -u github.com/goware/modvendor
- go mod vendor
- modvendor -copy="**/*.html **/*.js **/*.css **/*.tmpl **/*.ttf **/*.woff **/*.woff2" -v
- TEST_DB=postgres go test -v ./...
- TEST_DB=mysql go test -v ./...
- go test -v ./...

0 comments on commit 27691fa

Please sign in to comment.