fix: travis 🐶

v1.18.x
Baris Usakli 5 years ago
parent a8df6d6298
commit 3731dc4eb1

@ -4,6 +4,11 @@ services:
- postgresql - postgresql
before_install: before_install:
- cp install/package.json package.json - cp install/package.json package.json
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-12 postgresql-client-12
- sudo cp /etc/postgresql/{9.6,12}/main/pg_hba.conf
- sudo service postgresql restart 12
before_script: before_script:
- sleep 15 # wait for mongodb to be ready - sleep 15 # wait for mongodb to be ready
- "mongo mydb_test --eval 'db.createUser({user:\"travis\", pwd: \"test\", roles: []});'" - "mongo mydb_test --eval 'db.createUser({user:\"travis\", pwd: \"test\", roles: []});'"
@ -14,26 +19,29 @@ after_success:
- "npm run coveralls" - "npm run coveralls"
language: node_js language: node_js
sudo: false sudo: false
dist: trusty dist: xenial
env: env:
- CXX=g++-4.8 DB=mongodb TEST_ENV=production - CXX=g++-4.8 DB=mongodb TEST_ENV=production
- CXX=g++-4.8 DB=mongodb TEST_ENV=development - CXX=g++-4.8 DB=mongodb TEST_ENV=development
- CXX=g++-4.8 DB=redis TEST_ENV=production - CXX=g++-4.8 DB=redis TEST_ENV=production
- CXX=g++-4.8 DB=postgres TEST_ENV=production - CXX=g++-4.8 DB=postgres TEST_ENV=production
global:
- PGUSER=postgres
- PGPORT=5432
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- mongodb-3.4-trusty - mongodb-4.0-xenial
packages: packages:
- g++-4.8 - g++-4.8
- mongodb-org-server - mongodb-org-server
postgresql: "12"
node_js: node_js:
- "12" - "12"
- "10" - "10"
- "8"
branches: branches:
only: only:
- master - master
- develop - develop
script:
- psql -c "SELECT version();"

Loading…
Cancel
Save