typeorm-model-generator/.travis.yml

53 lines
1.9 KiB
YAML
Raw Normal View History

2017-05-03 17:47:01 +00:00
language: node_js
node_js:
2020-11-16 22:26:31 +00:00
- 15
2020-04-26 12:22:01 +00:00
- 14
2019-08-09 21:12:28 +00:00
- 12
- 10
2018-11-24 17:21:34 +00:00
cache: npm
2020-03-17 21:00:36 +00:00
branches:
except:
- no-engines
2017-05-14 13:00:03 +00:00
services:
- docker
2017-05-14 12:53:06 +00:00
env:
2020-03-17 21:00:36 +00:00
jobs:
2018-12-29 16:42:53 +00:00
- POSTGRES_Skip=0 POSTGRES_Host=localhost POSTGRES_Port=5432 POSTGRES_Username=test
POSTGRES_Password=test POSTGRES_Database=test POSTGRES_SSL=0 MYSQL_Skip=0
MYSQL_Host=localhost MYSQL_Port=3306 MYSQL_Username=root MYSQL_Password=admin
2018-12-29 16:42:53 +00:00
MYSQL_Database=test MYSQL_SSL=0 MARIADB_Skip=0 MARIADB_Host=localhost MARIADB_Port=3307
MARIADB_Username=root MARIADB_Password=admin MARIADB_Database=test MARIADB_SSL=0
2018-12-29 16:42:53 +00:00
MSSQL_Skip=0 MSSQL_Host=localhost MSSQL_Port=1433 MSSQL_Username=sa MSSQL_Password=Admin12345
MSSQL_Database=typeorm_mg MSSQL_SSL=0
2018-04-23 20:41:46 +00:00
ORACLE_Skip=0
ORACLE_Host=localhost
ORACLE_Port=1521
ORACLE_SSL=0
ORACLE_UsernameSys=sys
ORACLE_PasswordSys=Oradoc_db1
ORACLE_Database=orclpdb1.localdomain
ORACLE_Username=typeorm_mg
ORACLE_Password=Passw0rd
2018-04-30 20:47:40 +00:00
SQLITE_Skip=0
2018-05-03 19:14:23 +00:00
SQLITE_Database=/tmp/sqlitedb.db
2017-05-14 13:08:18 +00:00
before_install:
- sudo service mysql stop
- sudo service postgresql stop
2019-06-07 22:50:17 +00:00
- images=(mysql mariadb postgres mssql)
2018-04-23 20:41:46 +00:00
- if [ -z "$DOCKER_USERNAME" ]; then echo "DOCKER_USERNAME is unset"; else echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; fi
2019-01-16 21:52:11 +00:00
- if [ -z "$DOCKER_USERNAME" ]; then export ORACLE_Skip=1; else images=(${images[@]} oracle oracle_client); fi
2019-01-24 20:16:55 +00:00
- if [ -n "$DOCKER_USERNAME" ]; then docker-compose up -d ${images[@]}; fi
2019-01-16 22:09:18 +00:00
- echo ${images[@]}
2019-11-16 20:10:17 +00:00
- docker-compose pull --ignore-pull-failures ${images[@]}
2019-01-16 22:09:18 +00:00
- docker-compose up -d ${images[@]}
2018-06-17 18:48:04 +00:00
before_script:
2019-01-16 21:27:06 +00:00
- if [ -n "$DOCKER_USERNAME" ]; then mkdir /opt/oracle; npm i oracledb --no-save; docker cp typeorm-mg-oracle-client:/usr/lib/oracle/12.2/client64/lib /opt/oracle/instantclient_12_2; fi
2018-06-14 18:15:29 +00:00
- export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH
2019-03-12 21:25:39 +00:00
script:
2019-11-16 20:10:17 +00:00
- travis_retry sh -c 'sleep 90 && npm t -- --colors'
2019-03-11 18:47:35 +00:00
after_success:
2019-06-07 22:12:29 +00:00
- codecov
2020-03-19 16:11:36 +00:00
after_failure:
- docker-compose logs
- docker ps