-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (61 loc) · 2.3 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# When a tagged commit is pushed the documentation pages and npm module are published/deployed:
os: linux
# linux dist that includes C++ compiler needed for native node modules
dist: bionic
# npm version patch -m "%s Release"
language: node_js
node_js:
- "lts/*"
#services:
# - mysql
# - postgresql
env:
- REPO_VER=v1.5.5 MYSQL_MAJOR=8 MYSQL_MINOR=14 MYSQL_PATCH=1 MYSQL_ODBC_MAJOR=8 MYSQL_ODBC_MINOR=0 MYSQL_ODBC_PATCH=19 MYSQL_ODBC_DATASOURCE=MySQL POSTGRESQL_MAJOR=12 POSTGRESQL_ODBC_DATASOURCE=PostgreSQL MSSQL_VER=2019 MSSQL_SA_PWD=sqlS3rv35local MSSQL_PWD=390Khy7MxeU8N MSSQL_ODBC_DATASOURCE=SqlServer
before_install:
- sudo apt-get install unixodbc unixodbc-dev
- wget -O install-mssql.sh https://raw.githubusercontent.com/ugate/repo/$REPO_VER/mssql/install.sh
- wget -O install-mysql.sh https://raw.githubusercontent.com/ugate/repo/$REPO_VER/mysql/install.sh
- wget -O install-mysql-odbc.sh https://raw.githubusercontent.com/ugate/repo/$REPO_VER/mysql/install-odbc.sh
- wget -O install-postgresql.sh https://raw.githubusercontent.com/ugate/repo/$REPO_VER/postgresql/install.sh
- wget -O install-postgresql-odbc.sh https://raw.githubusercontent.com/ugate/repo/$REPO_VER/postgresql/install-odbc.sh
- bash ./install-mssql.sh
- bash ./install-mysql.sh
- bash ./install-mysql-odbc.sh
- bash ./install-postgresql.sh
- bash ./install-postgresql-odbc.sh
- rm -rf install-mssql.sh
- rm -rf install-mysql.sh
- rm -rf install-mysql-odbc.sh
- rm -rf install-postgresql.sh
- rm -rf install-postgresql-odbc.sh
- odbcinst -j
- odbcinst -q -d
- odbcinst -q -s
branches:
only:
- master
- "/v*/"
script:
# - printenv
- "npm run test-mysql"
- "npm run test-mssql"
- "npm test"
deploy:
#edge: true # avoid dpl v2 missing api_token
- provider: script
skip_cleanup: true # deprecated, use cleanup with new dpl ver
cleanup: false
script: npm run jsdocp-deploy
on:
tags: true # only on tagging commit
branch:
- /v(\d+\.)?(\d+\.)?(\*|\d+)$/
- provider: npm
skip_cleanup: false # deprecated, use cleanup with new dpl ver
cleanup: true
email: "[email protected]"
api_token: $NPM_TOKEN # Set in the settings page of your repository, as a secure variable
on:
tags: true # only on tagging commit
branch:
- /v(\d+\.)?(\d+\.)?(\*|\d+)$/