Skip to content

Commit

Permalink
Merge pull request #7 from IBM/deploy
Browse files Browse the repository at this point in the history
feat(deploy): enable semantic release
  • Loading branch information
ajay-malhotra1 authored Aug 1, 2020
2 parents 49bece9 + 47b42a4 commit 339476e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3,451 deletions.
30 changes: 29 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ cache: pip

matrix:
include:
- python: 3.7
- python: 3.5
before_script:
- >-
[ -z "${TRAVIS_TAG}" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]
&& openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
&& openssl aes-256-cbc -K $encrypted_16de86179301_key -iv $encrypted_16de86179301_iv -in .transit_env.enc -out .transit_env -d
&& openssl aes-256-cbc -K $encrypted_b4d7fa377f59_key -iv $encrypted_b4d7fa377f59_iv -in .dl_env.enc -out .dl_env -d
|| true
- python: 3.6
- python: 3.7
- python: 3.8

before_install:
- npm install npm@latest -g
Expand All @@ -25,3 +28,28 @@ install:
- pip install tox-travis

script: tox

before_deploy:
- pip install bump2version
- nvm install 12
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
- npm install @semantic-release/git
- npm install @semantic-release/github

deploy:
- provider: script
script: npx semantic-release
skip_cleanup: true
on:
python: '3.5'
branch: master

- provider: pypi
user: __token__
password: $PYPI_TOKEN
repository: https://upload.pypi.org/legacy
skip_cleanup: true
on:
python: '3.5'
tags: true
Loading

0 comments on commit 339476e

Please sign in to comment.