Skip to content

Commit

Permalink
minor: fix travis ci db codec issue (TencentBlueKing#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
homholueng committed May 9, 2019
1 parent c0e2c75 commit 5c19262
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -13,7 +13,8 @@ before_script:
script:
- flake8
- source scripts/develop/sites/community/env.sh
- mysql -uroot -e "CREATE DATABASE IF NOT EXISTS $APP_ID;"
- mysql -uroot -e "CREATE DATABASE IF NOT EXISTS $APP_ID DEFAULT CHARACTER SET = 'utf8' DEFAULT COLLATE 'utf8_general_ci';"
- mysql -uroot -e "SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));"
- echo 'yes' | bash scripts/code/coverage_and_report.sh -e enterprise

after_success:
Expand Down
6 changes: 5 additions & 1 deletion config/dev.py
Expand Up @@ -45,7 +45,11 @@
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '3306',
'TEST': {'NAME': 'test_sops'}
'TEST': {
'NAME': 'test_sops',
'CHARSET': 'utf8',
'COLLATION': 'utf8_general_ci',
}
},
}

Expand Down

0 comments on commit 5c19262

Please sign in to comment.