Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/348.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Travis Postgres连接被拒绝_Java_Postgresql_Travis Ci - Fatal编程技术网

Java Travis Postgres连接被拒绝

Java Travis Postgres连接被拒绝,java,postgresql,travis-ci,Java,Postgresql,Travis Ci,我试图在需要postgres数据库的java应用程序中运行测试 低于travis.yaml含量 sudo: required language: java jdk: - openjdk11 env: global: - PGPORT=5432 - PGHOST=localhost addons: postgresql: "10" apt: packages: - postgresql-10 - postgresql-client

我试图在需要postgres数据库的java应用程序中运行测试

低于travis.yaml含量

sudo: required
language: java
jdk:
  - openjdk11

env:
  global:
    - PGPORT=5432
    - PGHOST=localhost

addons:
  postgresql: "10"
  apt:
    packages:
      - postgresql-10
      - postgresql-client-10

before_script:
  - psql -c 'create database wsboard_test;' -U postgres
  - psql -c "CREATE USER admin WITH PASSWORD 'admin217';" -U postgres


script: mvn clean install -DskipTests=false
我得到了psql错误

拒绝连接

我做错了什么?加载项和环境设置取自文档