-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
20 lines (18 loc) · 952 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: node_js
node_js:
- 0.8 # previous stable release
- 0.10 # latest stable release
- 0.11 # latest development release
# This causes `Job is already running: mysql`
#services:
# - mysql # start MySQL on startup
before_script:
- "mysql -uroot -e \"DELETE FROM mysql.db WHERE Db = 'test\\_%';\""
- "mysql -uroot -e \"DELETE FROM mysql.user WHERE Host = 'localhost' AND User = '';\""
- "mysql -uroot -e \"FLUSH PRIVILEGES;\""
- "mysql -uroot -e \"CREATE DATABASE IF NOT EXISTS test_allowed DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;\""
- "mysql -uroot -e \"GRANT ALL PRIVILEGES ON test_allowed.* TO 'test_user'@'localhost' IDENTIFIED BY '1234';\""
- "mysql -uroot -e \"CREATE DATABASE IF NOT EXISTS test_denied DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;\""
# Some extras for Travis-CI only
- "mysql -uroot -e \"DELETE FROM mysql.user WHERE User = 'travis';\""
- "mysql -uroot -e \"FLUSH PRIVILEGES;\""