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

Fix syntax in example #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Fix syntax in example

49fb83d
Select commit
Loading
Failed to load commit list.
Open

Fix syntax in example #72

Fix syntax in example
49fb83d
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Dec 2, 2024 in 15m 11s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #72 Fix syntax in example.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in parallel.

Job ENV OS State Notes
660.1 IMAGE_BUILD_PLATFORM=stable-centos7 Linux passed
660.2 IMAGE_BUILD_PLATFORM=epel-centos7 Linux passed
660.3 IMAGE_BUILD_PLATFORM=ansible-min-version-centos7 Linux passed
660.4 IMAGE_BUILD_PLATFORM=pip-ubuntu Linux passed
660.5 IMAGE_BUILD_PLATFORM=devel-centos7 Linux errored This job is allowed to fail.

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Trusty)
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "trusty",
  "sudo": true,
  "group": "edge",
  "services": [
    "docker"
  ],
  "env": [
    "jobs={:IMAGE_BUILD_PLATFORM=>\"stable-centos7\"}={:IMAGE_BUILD_PLATFORM=>\"devel-centos7\"}={:IMAGE_BUILD_PLATFORM=>\"epel-centos7\"}={:IMAGE_BUILD_PLATFORM=>\"ansible-min-version-centos7\"}={:IMAGE_BUILD_PLATFORM=>\"pip-ubuntu\"}"
  ],
  "install": [
    "npm install -g validate-dockerfile"
  ],
  "before_script": [
    "export TESTDIR=tests",
    "export ROLETOTEST=$(basename $(pwd))",
    "export COMMIT=${TRAVIS_COMMIT::8}",
    "export REPO=csc/ansible",
    "docklint ${TESTDIR}/${IMAGE_BUILD_PLATFORM}/Dockerfile",
    "docker build -t ${REPO}:${IMAGE_BUILD_PLATFORM} ${TESTDIR}/${IMAGE_BUILD_PLATFORM}/",
    "export MIN_ANSIBLE_VERSION=$(grep min_ansible_version meta/main.yml|cut -d ':' -f2|xargs)",
    "echo \"INFO min_ansible_version $MIN_ANSIBLE_VERSION\"",
    "docker run --privileged -d -ti -e \"container=docker\"  -v `pwd`:/$ROLETOTEST -v /sys/fs/cgroup:/sys/fs/cgroup  ${REPO}:${IMAGE_BUILD_PLATFORM}  /usr/sbin/init",
    "DOCKER_CONTAINER_ID=$(docker ps | grep ${IMAGE_BUILD_PLATFORM} | awk '{print $1}')",
    "if [ \"$IMAGE_BUILD_PLATFORM\" == \"ansible-min-version-centos7\" ]; then docker exec -ti $DOCKER_CONTAINER_ID /bin/sh -c \"/usr/bin/yum -y install ansible-$MIN_ANSIBLE_VERSION\"; fi",
    "docker logs $DOCKER_CONTAINER_ID"
  ],
  "script": [
    "docker exec -ti $DOCKER_CONTAINER_ID /bin/sh -c \"/$ROLETOTEST/tests/test-in-docker-image.sh\""
  ],
  "after_script": [
    "docker exec -ti $DOCKER_CONTAINER_ID /bin/sh -c 'echo -ne \"------\\nEND ANSIBLE TESTS\\n------\\nSystemD Units:\\n------\\n\";\n   systemctl --no-pager --all --full status ;\n   echo -ne \"------\\nJournalD Logs:\\n------\\n\" ;\n   sudo journalctl --catalog --all --full --no-pager'\n",
    "docker exec -ti $DOCKER_CONTAINER_ID /bin/sh -c 'tree /ansible*'",
    "docker ps -a",
    "docker stop $DOCKER_CONTAINER_ID",
    "docker rm -v $DOCKER_CONTAINER_ID"
  ],
  "notifications": {
    "email": [
      {
        "enabled": false
      }
    ],
    "webhooks": [
      {
        "urls": [
          "https://galaxy.ansible.com/api/v1/notifications/"
        ]
      }
    ]
  },
  "jobs": {
    "fast_finish": true,
    "allow_failures": [
      {
        "env": [
          {
            "IMAGE_BUILD_PLATFORM": "devel-centos7"
          }
        ]
      }
    ]
  }
}