Skip to content

Commit

Permalink
Merge pull request #302 from spurwork/php-8-2
Browse files Browse the repository at this point in the history
php 8.2 and travis postgres 12
  • Loading branch information
stevespur authored Dec 6, 2023
2 parents 14239dc + f615673 commit 2850c2e
Show file tree
Hide file tree
Showing 3 changed files with 810 additions and 751 deletions.
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
language: php

php:
- 8.1

dist: bionic

- 8.2
dist: focal
sudo: true

cache:
directories:
- $HOME/.composer/cache

services:
- postgresql

addons:
postgresql: '9.6'
postgresql: '12'
apt:
packages:
- postgresql-9.6-postgis-2.4

- libonig5
- postgresql-12
- postgresql-client-12
- postgresql-12-postgis-3
env:
global:
- PGPORT=5433
- PGUSER=travis
before_install:
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo pg_ctlcluster 12 main restart
- sleep 1
- sudo mount -o remount,size=50% /var/ramfs
- phpenv config-rm xdebug.ini

install:
- composer self-update
- composer install --prefer-dist --no-interaction

before_script:
- psql -U postgres -c 'create database taxes'
- psql -U postgres -d taxes -c 'create extension postgis'
- psql -U travis -c 'create database travis_ci_test'
- psql -U travis -c 'create extension postgis'
- php init_db.php

script:
- vendor/phpunit/phpunit/phpunit --stop-on-error --stop-on-failure
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-bcmath": "*",
"doctrine/dbal": "^3.3",
"doctrine/dbal": "^3.7",
"illuminate/database": "^8.83",
"mstaack/laravel-postgis": "^5.4",
"nesbot/carbon": "^2.58"
"nesbot/carbon": "^2.72"
},
"require-dev": {
"orchestra/database": "^6.0",
"orchestra/testbench": "^6.24",
"phpunit/phpunit": "^9.5",
"orchestra/testbench": "^6.40",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.7"
},
"autoload": {
Expand Down
Loading

0 comments on commit 2850c2e

Please sign in to comment.