Skip to content

Commit

Permalink
Travis: Auto publish dev version on new version (fix #173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed Mar 27, 2018
1 parent 6398c3e commit d7672e7
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,38 @@ language: node_js
notifications:
email:
on_success: change
on_failure: always
on_failure: change

git:
depth: 5

node_js:
- "node"

matrix:
include:
- env: RUN=addons-linter
- env: RUN=eslint
env:
- RUN=addons-linter
- RUN=eslint

before_script:
- npm install -g $RUN
- $RUN --version
- $RUN --help
- npm install ${RUN} --global
- ${RUN} --version
- ${RUN} --help

script:
- $RUN .
- ${RUN} .

jobs:
include:
- stage: Deploy Developement Versions
before_script:
- if ! [[ "$(git diff --name-only ${TRAVIS_COMMIT}^ -- manifest.json)" == "" ]]; then NEWVERSION=true; else NEWVERSION=false; fi;
- npm install -g web-ext
- git config user.name ${GITHUB_BOT_NAME}
- git config user.email ${GITHUB_BOT_EMAIL}
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
- sed --in-place 's/verticaltabsreloaded/vtrbeta/' manifest.json
- sed --in-place 's/Vertical Tabs Reloaded/VTR (DEVELOPER VERSION)/' manifest.json
script:
- web-ext --version
- if [[ "${NEWVERSION}" == "true" ]]; then web-ext sign --api-key=${AMO_API_USER} --api-secret=${AMO_API_SECRET}; fi;

0 comments on commit d7672e7

Please sign in to comment.