Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with authutils branch #1113

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Merge branch 'master' into feat/test-authutils

8991f8e
Select commit
Loading
Failed to load commit list.
Draft

Test with authutils branch #1113

Merge branch 'master' into feat/test-authutils
8991f8e
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Sep 11, 2023 in 6m 0s

Build Passed

The build passed. This is a change from the previous build, which errored.

Details

This is a normal build for the feat/test-authutils branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Jammy)
Python Version 3.9
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "python": [
    "3.9"
  ],
  "sudo": false,
  "cache": {
    "pip": true
  },
  "services": [
    "postgresql"
  ],
  "addons": {
    "postgresql": "13",
    "apt": {
      "sources": [
        {
          "sourceline": "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main 13",
          "key_url": "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
        }
      ],
      "packages": [
        "postgresql-13"
      ]
    }
  },
  "before_install": [
    "sudo cp travis/postgresql.conf /etc/postgresql/13/main/postgresql.conf",
    "sudo cp travis/pg_hba.conf /etc/postgresql/13/main/pg_hba.conf",
    "sudo pg_ctlcluster 13 main restart"
  ],
  "install": [
    "pip install --upgrade pip",
    "pip install poetry",
    "poetry install --all-extras -vv --no-interaction",
    "poetry show -vv",
    "psql -c 'SELECT version();' -U postgres",
    "psql -U postgres -c \"create database fence_test_tmp\"",
    "pip list"
  ],
  "before_script": [
    "sudo rm -f /etc/boto.cfg",
    "mkdir -p tests/resources/keys; cd tests/resources/keys; openssl genrsa -out test_private_key.pem 2048; openssl rsa -in test_private_key.pem -pubout -out test_public_key.pem",
    "openssl genrsa -out test_private_key_2.pem 2048; openssl rsa -in test_private_key_2.pem -pubout -out test_public_key_2.pem",
    "cd -"
  ],
  "script": [
    "poetry run pytest -vv --cov=fence --cov=migrations/versions --cov-report xml tests"
  ],
  "after_script": [
    "python-codacy-coverage -r coverage.xml",
    "COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN coveralls"
  ]
}