forked from sequelize/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 838 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
sudo: true
dist: trusty
language: node_js
jobs:
include:
- stage: test
node_js: 10
env: DIALECT=postgres SEQUELIZE=latest SEQ_PORT=54320
- stage: test
node_js: 10
env: DIALECT=mysql SEQUELIZE=latest SEQ_PORT=33060
- stage: test
node_js: 10
env: DIALECT=sqlite SEQUELIZE=latest
- stage: test
node_js: 10
env: DIALECT=sqlite SEQUELIZE=5
install:
- npm install
- npm install sequelize@$(echo $SEQUELIZE)
- npm run build
before_script:
- |-
if [ "$DIALECT" = "postgres" ] || [ "$DIALECT" = "mysql" ]; then docker-compose up -d ${DIALECT}; fi
- |-
if [ "$DIALECT" = "postgres" ] || [ "$DIALECT" = "mysql" ]; then docker run --link ${DIALECT}:db -e CHECK_PORT=${SEQ_PORT::-1} -e CHECK_HOST=db --net cli_default giorgos/takis; fi
script:
- npm run test