-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 1.74 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
language: node_js
dist: precise
node_js:
- 6
- 8
- 10
deploy:
- provider: npm
skip_cleanup: true
email: [email protected]
# only tagged commits will trigger deploy. all other commits simply run the lint and tests
on:
tags: true
branch: master
# NPM API key, encrypted with public key crypto. only travis has the private key.
api_key:
secure: PcwMn5hXRyFOEV3RFp1MWMvZnj2T2nSJ2vV/8vdVNDL+QwVaQGICWLeUGbcMmtliowMVCpNswZ8+cVyg+HUlvdF8dlpNTzuHA4Cv1V/+RUfJbtTaZVPIezswtjbxcOxS69ZNCJbRJXoWojiYUSXzBjdGFHRWGFzFYbdhMgXYt8sgkN3FSdny7MdHMsOk5TISFdVu9XppFO4SCru1jf6iyXQe+6ZaH/XyI9BdPbQ3SPl7NpvLwJBSGeTdxaI779r74wRUBlBlIO52U7IsTb4zhES25E1+dMBc3mOGRScj4/wx6p4880jhJupDA/feQnkStdAjVDzMtqXNwmlRMcvQX5xD4cSHYTInMkO6Y3d3MsV9DX7LTVTX6x5oDrsHA6SkToL09w5OFB9FU2M6j7vqRLws1hv85seOsEwaqqYeYyBtlFSN0vKfvF4R3yZJ/3GPkKTvevNyZZQ1GN09ZQzKp2tkCHl/vKzXTb2HCD8ql8/lhaqX1qA8vC5X1SDNhAEIjqmjFJPa/IeT8lK219KWa4fURs9fQAhQO5f0r735TTEL0SY99BXrTXfiYLje5dGV4cM9ABp3ENLDJH1oMj9j+W0tZ0192/tJOdoKQ62vBlFxQ7MWe1A49PjqVNLBUGnuVyq7xAXHMF5Iwf5Pq2Pg7QUptin5QKxcutH057xDSn0=
addons:
postgresql: "9.4"
mariadb: '10.2'
# need a C++ compiler for sqlite3
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_script:
# create the databases
- psql -c "CREATE DATABASE test1 LC_COLLATE 'en_US.UTF-8';" -U postgres
- psql -c "CREATE DATABASE test2 LC_COLLATE 'en_US.UTF-8';" -U postgres
- psql -c "CREATE DATABASE demo LC_COLLATE 'en_US.UTF-8';" -U postgres
- echo "CREATE DATABASE test1" | mysql -u travis
- echo "CREATE DATABASE test2" | mysql -u travis
# populate them with data
- npm run db-build
env:
- MYSQL_URL=mysql://travis@localhost/ PG_URL=postgres://postgres@localhost/ CXX=g++-4.8
notifications:
email: false