Skip to content

Commit

Permalink
Merge pull request #20 from rubencabrera/more-semantic-release
Browse files Browse the repository at this point in the history
ci: improve semantic release
  • Loading branch information
rubencabrera authored Sep 13, 2019
2 parents 15a0250 + b3f2eae commit d6e98b9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ services:
- docker
jobs:
include:
- stage: build docker image
name: Test build docker image
script:
- docker build -t "${TRAVIS_REPO_SLUG}:${TRAVIS_BRANCH}" .
- stage: test
script: docker run "${TRAVIS_REPO_SLUG}:${TRAVIS_BRANCH}" /opt/odoo/odoo-bin --version
- stage: deploy
script:
- docker build -t "${TRAVIS_REPO_SLUG}:${TRAVIS_BRANCH}" .
- docker run "${TRAVIS_REPO_SLUG}:${TRAVIS_BRANCH}" /opt/odoo/odoo-bin --version
- stage: release
if: tag IS present
provider: script
skip_cleanup: true
script:
- nvm install lts/*
- npx semantic-release
on:
tags: true
branch: 12
#on:
#tags: true
#branch: 12

# ver package.json a medias de https://revelry.co/semantic-release/

0 comments on commit d6e98b9

Please sign in to comment.