From 9a6e0439e1660e5363dbeca011a7f1d8545be8bf Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2019 11:12:35 +0800 Subject: [PATCH 1/6] Run molecule test manually on Travis CI --- .travis.yml | 8 +++++++- CHANGELOG.md | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3fa1b5f..8c7c755 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,13 @@ install: ln -s $TRAVIS_BUILD_DIR $HOME/.ansible/roles/$ROLE script: - - travis_wait 120 sudo ./scripts/run-tests.sh molecule test -s $MOLECULE_SCENARIO_NAME + - | + source ./scripts/run-tests.sh + sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME + sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME + sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME + sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME + sudo -E molecule verify -s $MOLECULE_SCENARIO_NAME notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d86a71..5cc4a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Major Changes + - Run molecule test manually on Travis CI + ## 3.3.0 - 2019-08-27 ### Major Changes From aad21e1a7f81009ba3bf6ab904eea15494e05a8b Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2019 11:27:03 +0800 Subject: [PATCH 2/6] travis_wait 120 sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c7c755..9cc0425 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,7 @@ script: sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME - sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME + travis_wait 120 sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME sudo -E molecule verify -s $MOLECULE_SCENARIO_NAME notifications: From f3b3e87c3ca0cee7a832570f29d895e5995d54e8 Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2019 12:13:59 +0800 Subject: [PATCH 3/6] all molecule test should be passed once together --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9cc0425..91c77fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,11 +38,11 @@ install: script: - | source ./scripts/run-tests.sh - sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME - sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME - sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME - travis_wait 120 sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME - sudo -E molecule verify -s $MOLECULE_SCENARIO_NAME + && sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME + && sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME + && sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME + && travis_wait 120 sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME + && sudo -E molecule verify -s $MOLECULE_SCENARIO_NAME notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ From 989901bc804287724bed131ae049723b17329ec6 Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2019 12:58:28 +0800 Subject: [PATCH 4/6] syntax error near unexpected token '&&' --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91c77fa..4bdaa47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,12 +37,12 @@ install: script: - | - source ./scripts/run-tests.sh - && sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME - && sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME - && sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME - && travis_wait 120 sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME - && sudo -E molecule verify -s $MOLECULE_SCENARIO_NAME + source ./scripts/run-tests.sh \ + && sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME \ + && sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME \ + && sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME \ + && travis_wait 120 sudo -E molecule idempotence -s $MOLECULE_SCENARIO_NAME \ + && sudo -E molecule verify -s $MOLECULE_SCENARIO_NAME notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ From e3bdf3d921600911a8de004cf1c13670ea2f9a7b Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2019 13:07:04 +0800 Subject: [PATCH 5/6] sudo -E molecule dependency -s $MOLECULE_SCENARIO_NAME --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4bdaa47..f46f635 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,7 @@ install: script: - | source ./scripts/run-tests.sh \ + && sudo -E molecule dependency -s $MOLECULE_SCENARIO_NAME \ && sudo -E molecule lint -s $MOLECULE_SCENARIO_NAME \ && sudo -E molecule syntax -s $MOLECULE_SCENARIO_NAME \ && sudo -E molecule converge -s $MOLECULE_SCENARIO_NAME \ From 372b03448822b04e4bed5323643d5c755530e6bf Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2019 21:52:30 +0800 Subject: [PATCH 6/6] 3.4.0 --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cc4a58..831307f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Ansible Role for Bamboo -## 3.4.0 - TBC +## 3.5.0 - TBC + +### Major Changes + +## 3.4.0 - 2019-09-18 ### Major Changes