-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
37 lines (36 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: node_js
node_js:
- '10'
repo_token: "$COVERALLS_TOKEN"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- export PATH=$HOME/.yarn/bin:$PATH
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('test') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -ptest
- sudo service mysql restart
- mysql -u root -ptest -e 'create database test character set utf8 collate utf8_general_ci;'
- mysql -u root -ptest test < assets/init.sql
cache: false
git:
depth: 5
services:
- mysql
script:
- yarn lint
- yarn test
after_success:
- yarn ci:coverage
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/e4cbb72a5a86450bd6f5
on_success: change
on_failure: always
on_start: never
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client