Refactor CI pipelien and enable molecule testing #1

Merged
xoxys merged 131 commits from molecule-dev into master 2019-03-25 21:23:40 +00:00
Showing only changes of commit 55d5196ab8 - Show all commits

View File

@ -3,20 +3,10 @@ kind: pipeline
name: default
workspace:
base: /drone/src/$DRONE_REPO_NAME
path: test
# clone:
# disable: true
base: /drone/src
path: xoxys.nginx
steps:
# - name: clone
# image: docker:git
# commands:
# - git clone $DRONE_GIT_HTTP_URL
# - cd $DRONE_REPO_NAME
# - git checkout $DRONE_COMMIT -b $DRONE_BRANCH
# - name: ansible-latest
# image: python:2.7
# pull: always
@ -51,15 +41,16 @@ steps:
from_secret: gce_ssh_user
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
ANSIBLE_TIMEOUT: 60
ANSIBLE_ROLES_PATH: /drone/src
commands:
- pwd
- ls -la
# - mkdir $HOME/.ssh
# - echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
# - chmod 600 $HOME/.ssh/google_compute_engine
# - echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
# - pip install apache-libcloud pycrypto --user
# - molecule create --scenario-name gce-centos-7
# - molecule converge --scenario-name gce-centos-7
# - molecule verify --scenario-name gce-centos-7
# - molecule destroy --scenario-name gce-centos-7
- mkdir $HOME/.ssh
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
- chmod 600 $HOME/.ssh/google_compute_engine
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
- pip install apache-libcloud pycrypto --user
- molecule create --scenario-name gce-centos-7
- molecule converge --scenario-name gce-centos-7
- molecule verify --scenario-name gce-centos-7
- molecule destroy --scenario-name gce-centos-7