-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #723 from Algunenano/travis_12
Travis: Use pure travis and add PG12
- Loading branch information
Showing
1 changed file
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
language: generic | ||
sudo: required | ||
env: | ||
matrix: | ||
- NODE_VERSION=10.15.1 | ||
DOCKER_IMAGE=carto/nodejs-xenial-pg101:latest | ||
- NODE_VERSION=10.15.1 | ||
DOCKER_IMAGE=carto/nodejs-xenial-pg1121:latest | ||
services: | ||
- docker | ||
before_install: docker pull ${DOCKER_IMAGE} | ||
script: npm run test:docker | ||
sudo: false | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "10" | ||
|
||
jobs: | ||
include: | ||
- env: POSTGRESQL_VERSION="10" POSTGIS_VERSION="2.4" | ||
dist: xenial | ||
- env: POSTGRESQL_VERSION="11" POSTGIS_VERSION="2.5" | ||
dist: xenial | ||
- env: POSTGRESQL_VERSION="12" POSTGIS_VERSION="3" | ||
dist: bionic | ||
|
||
install: | ||
- npm ci | ||
|
||
script: | ||
- if [[ $POSTGRESQL_VERSION == '10' ]]; then sudo add-apt-repository -y ppa:cartodb/gis; fi; | ||
- sudo add-apt-repository -y ppa:cartodb/postgresql-$POSTGRESQL_VERSION | ||
- sudo apt-get -q update | ||
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests postgresql-$POSTGRESQL_VERSION postgresql-client-$POSTGRESQL_VERSION postgresql-server-dev-$POSTGRESQL_VERSION postgresql-common postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION-scripts postgis | ||
- sudo pg_dropcluster --stop $POSTGRESQL_VERSION main | ||
- sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION /var/ramfs/postgresql/$POSTGRESQL_VERSION | ||
- sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main --start -p 5432 -- --auth-local trust | ||
- npm test | ||
|
||
after_failure: | ||
- pg_lsclusters | ||
- sudo cat /var/log/postgresql/postgresql-$POSTGRESQL_VERSION-main.log |