diff --git a/.travis.yml b/.travis.yml index cbded5f..e7382e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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;