Skip to content

Commit

Permalink
2.0.0 bugfix (#534)
Browse files Browse the repository at this point in the history
Fixes bug on 2.0.0
  • Loading branch information
ivotron authored Mar 11, 2019
1 parent 2cd4720 commit 62768bd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
dist: xenial
language: python
python:
- "2.7"
- "3.7"
- "2.7"
- "3.7"
services: docker
script:
- export PATH=$PATH:$PWD/cli/bin
- bash -c "popper run --wfile ci/cli.workflow"
- git clone https://github.com/cplee/github-actions-demo /tmp/gha-demo
- bash -c "cd /tmp/gha-demo && PHONY_SECRET=phony popper run"
- popper run --recursive
8 changes: 7 additions & 1 deletion ci/cli.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ action "test reuse" {
runs = "reuse"
}

action "test actions-demo" {
uses = "./ci/test"
runs = "actions-demo"
}

action "end" {
uses = "./ci/test"
runs = "version"
needs = [
"test init",
"test ci",
"test reuse"
"test reuse",
"test actions-demo"
]
}
7 changes: 7 additions & 0 deletions ci/test/actions-demo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -ex

git clone https://github.com/cplee/github-actions-demo /tmp/gha-demo
pushd /tmp/gha-demo
PHONY_SECRET=phony popper run
popd
2 changes: 1 addition & 1 deletion cli/popper/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0'
__version__ = '2.0.1'
3 changes: 0 additions & 3 deletions cli/popper/gha.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,3 @@ def run(self, reuse=False):

if ecode != 0:
pu.fail("\n\nAction '{}' failed.\n.".format(self.action['name']))

pu.exec_cmd(
'docker rm {}'.format(self.cid), self.verbose, ignoreerror=True)

0 comments on commit 62768bd

Please sign in to comment.