forked from petoju/terraform-provider-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a mysql_role resource for creating MySQL roles (petoju#53)
- Loading branch information
Joe Stump
authored
Nov 7, 2018
1 parent
b9ec6e7
commit e639b83
Showing
11 changed files
with
694 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
dist: trusty | ||
|
||
sudo: required | ||
|
||
language: go | ||
services: | ||
- docker | ||
- mysql | ||
|
||
go: | ||
- 1.10.x | ||
- 1.10.x | ||
|
||
env: | ||
- DB=mysql:5.6 DB_EXTRA='' | ||
- DB=mysql:5.7 DB_EXTRA='' | ||
- DB=mysql:8.0 DB_EXTRA='mysqld --default-authentication-plugin=mysql_native_password' | ||
|
||
services: | ||
- docker | ||
|
||
script: | ||
- test -d /home/travis/gopath/src/github.com/terraform-providers || mv $(dirname $PWD) /home/travis/gopath/src/github.com/terraform-providers | ||
- make test | ||
- make vet | ||
- make website-test | ||
- export MYSQL_USERNAME=root | ||
- export MYSQL_ENDPOINT=localhost:3306 | ||
- export MYSQL_PASSWORD= | ||
- mysql -u root -e "INSTALL PLUGIN mysql_no_login SONAME 'mysql_no_login.so';" | ||
- make testacc | ||
- test -d /home/travis/gopath/src/github.com/terraform-providers || mv $(dirname $PWD) /home/travis/gopath/src/github.com/terraform-providers | ||
- make test | ||
- make vet | ||
- make website-test | ||
- sudo service mysql stop | ||
- export MYSQL_HOST=127.0.0.1 | ||
- export MYSQL_PORT=3306 | ||
- export MYSQL_USERNAME=root | ||
- export MYSQL_ENDPOINT="${MYSQL_HOST}:${MYSQL_PORT}" | ||
- export MYSQL_PASSWORD='' | ||
- docker pull $DB | ||
- docker run -d -p ${MYSQL_HOST}:${MYSQL_PORT}:${MYSQL_PORT} -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_ROOT_PASSWORD='' $DB $DB_EXTRA | ||
- docker ps -a | ||
- | | ||
while ! mysql -h${MYSQL_HOST} -P${MYSQL_PORT} -u${MYSQL_USERNAME} -e 'SELECT 1'; do | ||
echo 'Waiting for MySQL...' | ||
sleep 1; | ||
done; | ||
- mysql -h${MYSQL_HOST} -P${MYSQL_PORT} -u${MYSQL_USERNAME} -e "INSTALL PLUGIN mysql_no_login SONAME 'mysql_no_login.so';" | ||
- make testacc | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- go: tip | ||
- go: tip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.