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

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

TBT-137 Use custom branch for db setup

ab9d87f
Select commit
Loading
Failed to load commit list.
Open

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

TBT-137 Use custom branch for db setup
ab9d87f
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Feb 9, 2025 in 7m 4s

Build Passed

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

Details

This is a normal build for the TBT-137-account-env-vars branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build has three jobs, running in parallel.

Job Ruby ENV OS State
15810.1 3.2.2 PATH=/snap/bin:$PATH Linux passed
15810.2 3.2.2 PATH=/snap/bin:$PATH Linux passed
15810.3 3.2.2 PATH=/snap/bin:$PATH Linux passed

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",
    "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"
  ],
  "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/TBT-137-account-env-vars/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test"
  ]
}