Skip to content

Commit

Permalink
Add support for -relation-created hook (#601)
Browse files Browse the repository at this point in the history
Copy the hook template in for -relation-created hooks so that they are
handled by the charm.

Also switch to GitHub Actions for tests instead of Travis.
  • Loading branch information
johnsca authored Feb 23, 2021
1 parent 5b3379c commit 736b1ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test Suite

on:
- pull_request

jobs:
tox:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Tox
run: pip install tox
- name: Run tests
run: tox
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions charmtools/build/tactics.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ class InterfaceBind(DynamicHookBind):
relation hooks needed by this charm.
"""
HOOKS = [
'{}-relation-created',
'{}-relation-joined',
'{}-relation-changed',
'{}-relation-broken',
Expand Down

0 comments on commit 736b1ad

Please sign in to comment.