Skip to content

Commit

Permalink
Build master branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkaholic committed Mar 12, 2020
1 parent 63c6865 commit b50d8c1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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/
webhooks: https://galaxy.ansible.com/api/v1/notifications/

branches:
only:
- master

0 comments on commit b50d8c1

Please sign in to comment.