From b50d8c17d220c5ac9190702fd3e361dca45569c4 Mon Sep 17 00:00:00 2001 From: Dirk Pahl Date: Thu, 12 Mar 2020 16:24:29 +0100 Subject: [PATCH] Build master branch only --- .travis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index d76eee9..467f23b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,26 +1,30 @@ --- language: python services: docker - + env: global: - MOLECULE_PROJECT_DIR: "$TRAVIS_BUILD_DIR" - MOLECULE_ROLE_NAME: "$(basename $TRAVIS_BUILD_DIR)" - HCLOUD_TOKEN: "$HCLOUD_TOKEN" - + before_script: - wget https://raw.githubusercontent.com/nl2go/docker-molecule/2.22-n2g-1.0.0/requirements.txt - wget https://raw.githubusercontent.com/nl2go/docker-molecule/2.22-n2g-1.0.0/docker-compose.yml - docker-compose up -d - docker-compose exec molecule pip install dnspython requests==2.20.1 docker docker-compose hcloud molecule[hetznercloud] - docker-compose exec molecule pip install git+https://github.com/pycontribs/molecule-hetznercloud.git@master#egg=molecule-hetznercloud - + script: - docker-compose exec -e HCLOUD_TOKEN="$HCLOUD_TOKEN" -e USER=root molecule molecule test --all - + after_script: - docker-compose down - codecov - + notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file + webhooks: https://galaxy.ansible.com/api/v1/notifications/ + + branches: + only: + - master