-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (36 loc) · 977 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
38
39
40
41
42
43
44
45
sudo: required
language: node_js
compiler: gcc
node_js:
- 9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.7
- g++-4.7
cache: yarn
before_install:
- node -v
- yarn -v
- npm i -g lerna
# postgres
- createdb sqlectron
- psql -d sqlectron -a -f test/databases/postgresql/schema/schema.sql
# mysql
- mysql -e "create database sqlectron;" --user=root
- mysql sqlectron < test/databases/mysql/schema/schema.sql --user=root
# sqlserver
# - sqlcmd -S localhost,1433 -U sa -P Password12! -Q "CREATE DATABASE sqlectron" -d "master"
# - sqlcmd -S localhost,1433 -U sa -P Password12! -i test/databases/sqlserver/schema/schema.sql -d "sqlectron"
# - sqlcmd -S localhost,1433 -U sa -P Password12! -Q "select table_name from information_schema.tables" -d "sqlectron"
install:
- lerna bootstrap
script:
- yarn lint
- lerna run build
- lerna run test
- yarn coverage
after_script:
- yarn coveralls