From da528658dcb87d8556fecb56e7bb8d53e344dc99 Mon Sep 17 00:00:00 2001 From: dalerichardson Date: Thu, 8 Jun 2023 09:10:04 -0600 Subject: [PATCH] remove travis config --- .travis.yml | 68 ----------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8f74abc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,68 +0,0 @@ -language: python - -env: - global: - - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so - - SEGFAULT_SIGNALS=all - - SALT_PILLARROOT=$TRAVIS_BUILD_DIR/tests/pillar/test-nessus-agent - - SALT_REPO_URL=https://repo.saltproject.io/py3/redhat/7/x86_64/3003.repo - matrix: - - OS_VERSION=7 SALT_STATE=nessus-agent - -services: - - docker - -before_install: - - sudo apt-get update - - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | - sudo tee /etc/default/docker > /dev/null - - sudo service docker restart - - sleep 5 - - sudo docker build -t local/centos:${OS_VERSION} tests/docker/centos${OS_VERSION} - -install: - - sudo docker run --detach --privileged - --volume="${TRAVIS_BUILD_DIR}":"${TRAVIS_BUILD_DIR}":ro - --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro - --name centos-${OS_VERSION} local/centos:${OS_VERSION} init - - sudo docker exec centos-${OS_VERSION} touch /etc/fstab - - sudo docker exec centos-${OS_VERSION} curl -sSL -o /etc/yum.repos.d/salt.repo ${SALT_REPO_URL} - - sudo docker exec centos-${OS_VERSION} yum -y install - $(<${TRAVIS_BUILD_DIR}/tests/requirements.txt) - $(<${TRAVIS_BUILD_DIR}/tests/requirements-el${OS_VERSION}.txt) - - sudo docker exec centos-${OS_VERSION} salt-call --versions-report - - sudo docker exec centos-${OS_VERSION} salt-call --local - --retcode-passthrough - --file-root=$TRAVIS_BUILD_DIR - --pillar-root=$SALT_PILLARROOT - saltutil.sync_all - # create the path the salt.file.find looks for - - sudo docker exec centos-${OS_VERSION} mkdir -p /opt/nessus_agent/var/nessus/ - -script: - - sudo docker exec centos-${OS_VERSION} salt-call --local - --retcode-passthrough --log-file /var/log/salt/minion --log-file-level debug - --file-root=$TRAVIS_BUILD_DIR - --pillar-root=$SALT_PILLARROOT - state.show_sls - $SALT_STATE && - sudo docker exec centos-${OS_VERSION} salt-call --local - --retcode-passthrough --log-file /var/log/salt/minion --log-file-level debug - --file-root=$TRAVIS_BUILD_DIR - --pillar-root=$SALT_PILLARROOT - state.sls - $SALT_STATE - mock=True - -after_failure: - - sudo docker exec centos-${OS_VERSION} salt-call --local grains.items - - sudo docker exec centos-${OS_VERSION} sh -c set - - sudo docker exec centos-${OS_VERSION} cat /var/log/salt/minion - -after_script: - - sudo docker stop centos-${OS_VERSION} - -notifications: - email: - on_success: never - on_failure: always