Skip to content

TBT-137 Be able to use environment variables across different repos #1350

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

Merged
merged 20 commits into from
Mar 19, 2025

TBT-137 Revert database setup feature branch usage

b230973
Select commit
Loading
Failed to load commit list.
Merged

TBT-137 Be able to use environment variables across different repos #1350

TBT-137 Revert database setup feature branch usage
b230973
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request failed Mar 17, 2025 in 7m 44s

Build Failed

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

Details

This is a pull request build.

It is running a build against the merge commit, after merging #1350 TBT-137 Be able to use environment variables across different repos.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has four jobs, running in two sequential stages.

Stage 1: test

This stage failed.

Job Ruby ENV OS State
15901.1 3.2.2 PATH=/snap/bin:$PATH Linux failed
15901.2 3.2.2 PATH=/snap/bin:$PATH Linux failed
15901.3 3.2.2 PATH=/snap/bin:$PATH Linux failed

Stage 2: 🚢 it to Quay.io

This stage canceled.

Job Ruby ENV OS State
15901.4 3.2.2 PATH=/snap/bin:$PATH Linux canceled

Build Configuration

Build Option Setting
Language Ruby
Operating System Linux (Xenial)
Ruby Version 3.2.2
Build Configuration
{
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "group": "edge",
  "rvm": [
    "3.2.2"
  ],
  "script": [
    "bundle exec rake knapsack:rspec"
  ],
  "env": [
    "global={:PATH=>\"/snap/bin:$PATH\"}={:RUBY_GC_MALLOC_LIMIT=>\"90000000\"}={:RUBY_GC_HEAP_FREE_SLOTS=>\"200000\"}={:CI_NODE_TOTAL=>\"3\"} jobs={:CI_NODE_INDEX=>\"0\"}={:CI_NODE_INDEX=>\"1\"}={:CI_NODE_INDEX=>\"2\"}"
  ],
  "services": [
    "redis"
  ],
  "before_install": [
    "sudo apt-get install -yq --no-install-suggests --no-install-recommends postgresql-common",
    "sudo service postgresql stop",
    "sudo apt install -yq --no-install-suggests --no-install-recommends postgresql-11 postgresql-client-11",
    "sed -e 's/^port.*/port = 5432/' /etc/postgresql/11/main/postgresql.conf > postgresql.conf",
    "sudo chown postgres postgresql.conf",
    "sudo mv postgresql.conf /etc/postgresql/11/main",
    "sudo cp /etc/postgresql/{10,11}/main/pg_hba.conf",
    "sudo service postgresql stop",
    "sudo systemctl start postgresql@11-main",
    "gem install rubygems-update -v 3.4.22",
    "gem update --system"
  ],
  "jobs": {
    "include": [
      {
        "stage": ":ship: it to Quay.io",
        "addons": {
          "snaps": [
            {
              "name": "docker",
              "channel": "latest/stable"
            }
          ]
        },
        "install": [
          "echo skip"
        ],
        "before_script": [
          "echo skip"
        ],
        "script": [
          "make ship"
        ],
        "if": "commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true or branch = master"
      }
    ]
  },
  "before_script": [
    "psql --version",
    "psql -c 'CREATE DATABASE travis_test;' -U postgres",
    "psql -t -c \"SELECT 1 FROM pg_roles WHERE rolname='travis'\" -U postgres | grep 1 || psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres",
    "curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test"
  ]
}