Skip to content

Commit

Permalink
increase the python version on test and added versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangda committed Oct 26, 2019
1 parent 5e687d5 commit 9bdb51c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
42 changes: 38 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
language: python

python:
- "2.7"
- "3.6"
- '2.7'
- '3.7'

services: docker

Expand All @@ -23,7 +23,6 @@ env:

install:
- pip install ansible"${ANSIBLE_VERSION}"
# - pip install molecule
- pip install molecule">=2.22rc1"
- pip install docker
- pip install flake8
Expand All @@ -44,6 +43,41 @@ script:
- ansible --version
- molecule test

stages:
- name: Test
- name: GitHub Release
if: branch = master

jobs:
include:
- stage: GitHub Release
python:
- '3.7'
script:
- skip
before_deploy:
- export COMMITTER_EMAIL="$(git log -1 $TRAVIS_COMMIT --pretty="%cE")"
- export AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")"
- export VERSION_TAG=$(cat VERSION)
- echo "$VERSION_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$AUTHOR_NAME"
- git config --local user.email "$COMMITTER_EMAIL"
- git tag -a $VERSION_TAG -m "$TRAVIS_COMMIT"
- git tag -l
deploy:
- provider: releases
tag_name: "$VERSION_TAG"
target_commitish: "$TRAVIS_COMMIT"
name: "$VERSION_TAG"
#overwrite: false
skip_cleanup: true
api_key:
secure: qhTK1cstcaBVHdaQxBtvynMirKavsf2SF+9+eKbGNs9/HtVXqXMj6mkBN7MiczNGd9XjJTLiYENqrcQml1nRMpdQot/VBncb02lx4V6ctzsNoRRMhjBB/lNKbDo1nl8POmrrm5vkVpDOTwgVQbg1g4D320rUFPDliyxzuzz2/ZTyQShVA2aFvPq6H7oCTzED3SVl24bmvRRMDUoy9Cl9hJ6LFs8tHRCAq9GgOf5ffm+s2D9NcgVbCCMRXSakI+cm9zh41lWE9AuWr4OBJQR0q36BuXPlftBEN1UZoZH7s/rZxYBTso+Dw4TIzi4mAsQtoRh9wOaqreO+GVKD7BZinUMWrEkZkeRHwZCL55ROMAjI8itw/OBWmnaMB8HEFyIdPm+zkjqXctTaCokBgAC9BUh6SDrswx0DxfDAyXD1Pk9WDrEA9BUacXPMJnab5lt2jTHVaJUQyl15LLcB1KBUdIaFckoyhlA75sMEa6qxyvEePf/Dkv8m902YKzofxvlbGklJMPb/hOP6VLvSZUwTAA4FZ8oYqa9Wc22vxUPgscsq3ozJfjZOnih/39/EpKloGj2MieUQ6zP9QF/QJl3Z4ZjRG7xDze0anlW2+JXAZNxe/0EVNfuxI/KdWa8qG5rFwjwB42dLzmJHILpBQVN6nUQqKu7OMaRQbBWOUSxjVF0=
file: "*"
on:
repo: christiangda/$GITHUB_ROLE_NAME
branch: master

notifications:
webhooks:
if: branch = master
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
3 changes: 3 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# VERSION

WIP

0 comments on commit 9bdb51c

Please sign in to comment.