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

Use GitHub actions to run tests for CI #1592

Merged
merged 1 commit into from
Jan 11, 2024

As we are going to move away from using Travis for the CI, make use o…

7d39d68
Select commit
Loading
Failed to load commit list.
Merged

Use GitHub actions to run tests for CI #1592

As we are going to move away from using Travis for the CI, make use o…
7d39d68
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Jan 11, 2024 in 5m 21s

Build Passed

The build passed, just like the previous build.

Details

This is a normal build for the add-github-actions-for-running-test 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 Java
Operating System Linux (Bionic)
JDK Version openjdk17
Build Configuration
{
  "language": "java",
  "os": [
    "linux"
  ],
  "dist": "bionic",
  "jdk": [
    "openjdk17"
  ],
  "cache": {
    "directories": [
      "$HOME/.m2"
    ]
  },
  "before_script": [
    "wget https://archive.apache.org/dist/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz -P /tmp",
    "sudo tar xf /tmp/apache-maven-*.tar.gz -C /usr/local/bin/",
    "export M2_HOME=/usr/local/bin/apache-maven-3.8.5",
    "export PATH=${M2_HOME}/bin:${PATH}"
  ],
  "script": [
    "mvn package"
  ],
  "after_success": [
    "echo \"Determine deployment environment\"",
    "case $TRAVIS_BRANCH in\n  \"release/sbx4\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=sandbox-4\n    ;;\n  \"develop\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=development\n    ;;\n  \"release/int\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=INT\n    ;;\n  \"release/nft\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=nft\n    ;;\n  \"release/uat\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=uat\n    ;;\n  \"release/pre\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=pre-production\n    ;;\n  \"release/prd\")\n    DEPLOY_BRANCH=TRUE\n    SPACE_NAME=production\n    ;;\n  *)\n    echo \"No deployment environment found\"\n    ;;\nesac\n",
    "if [ $DEPLOY_BRANCH == \"TRUE\" ]; then\n  echo \"Deploying to the $SPACE_NAME environment\"\nelse\n  echo \"Checking for a Sandbox deployment\"\nfi\n"
  ],
  "deploy": [
    {
      "deployment_strategy": "rolling",
      "provider": "cloudfoundry",
      "edge": true,
      "api": "https://api.london.cloud.service.gov.uk",
      "username": "$CF_USERNAME",
      "password": "$CF_PASSWORD",
      "organization": "ccs-scale-cat",
      "space": "sandbox-2",
      "manifest": "manifest/sandbox-2.yml",
      "on": {
        "all_branches": true,
        "condition": [
          "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^(feature|bugfix)\\/(SCC|SCAT|CON|CAS)-[0-9]+.*$ || ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^snyk-(upgrade|fix)-[a-z0-9]+$"
        ]
      }
    },
    {
      "deployment_strategy": "rolling",
      "provider": "cloudfoundry",
      "edge": true,
      "api": "https://api.london.cloud.service.gov.uk",
      "username": "$CF_USERNAME",
      "password": "$CF_PASSWORD",
      "organization": "ccs-scale-cat",
      "space": "sandbox-3",
      "manifest": "manifest/sandbox-3.yml",
      "on": {
        "all_branches": true,
        "condition": [
          "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^(sbx3feature)\\/.*$"
        ]
      }
    },
    {
      "deployment_strategy": "rolling",
      "provider": "cloudfoundry",
      "edge": true,
      "api": "https://api.london.cloud.service.gov.uk",
      "username": "$CF_USERNAME",
      "password": "$CF_PASSWORD",
      "organization": "ccs-scale-cat",
      "space": "$SPACE_NAME",
      "manifest": "manifest/$SPACE_NAME.yml",
      "on": {
        "all_branches": true,
        "condition": [
          "$DEPLOY_BRANCH = TRUE"
        ]
      }
    }
  ],
  "env": [
    "global=CF_USERNAME=[secure]=CF_PASSWORD=[secure]={:DEPLOY_BRANCH=>\"FALSE\"}={:SPACE_NAME=>\"\\\"\\\"\"}"
  ]
}