Skip to content

Commit

Permalink
Merge pull request #3 from TransbankDevelopers/feat/add-travis-files
Browse files Browse the repository at this point in the history
Add travis files
  • Loading branch information
gdespirito authored Jul 22, 2020
2 parents aa1f270 + 35f2317 commit add8816
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: node_js
node_js:
- stable

script: echo "We don't have tests yet :("

before_deploy:
- sh package.sh

deploy:
provider: npm
skip_cleanup: true
email: [email protected]
api_key:
secure: Fvc4HzYeREZq+BAs6CyFkTmhjMnMJWepH+6mH12z+Y4lbkUus/xyytOAnvJnfVNY1WYOtP1k+esRI+blpDW93zdcT/AYj58cCLH19t4G1jp2MnSYd0LBE4A4ZomYdls4n/GqYoc+u4N3ajnw/ZLeSwDghjTkU4ToDfKxZKXTRh4RVWPchB14DOe+eTjBI0CZ3Bl7UnWpbPlShMEyYlJlpr2iZupJcUrjA1F7i21nenZOrepgaon5HqbG5ufX7a/xuec3LQb22UYvrAgf7EqFKJdv+zWoFHCPvhmz81x41I9jNELBcoj/mKF9yivKLGHzytOzORvYvOzjSHW6Hvy3MDIUtzMnMFvBJ2y93gE7bUvKdwEy/A0vvYEqi1pBW0nGkX4feA+IeTgARo52UPmrMiAG+1sTILB1/tuTSHEpz1grV5MVwTdb+GCziFqsEViVzWArjL9EE/mvcYrkbrMUhKaqQJGX4GfCbutwTd3MlIoEphRCrCFNQsGtwqmnWc9ePRjjdDguaLYGnMVwUFbgS9NBa8hq1ez2p4+dojLPSJUxyUna7nPFXWg+75US8E82wsPqJfdI0lfg0oqCGm3WzUfESHwJS3RqcNQVqN5vkNldJFC6Z23PLz1wSnEMnXbrsSASu8u7YNHBV1+IW9Mq4AJe4whYBMEvhLCnct0ePZc=
on:
tags: true
repo: TransbankDevelopers/transbank-pos-sdk-web-js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "transbank-pos-sdk-web",
"version": "1.1.0",
"version": "1.0.0",
"description": "SDK Web Transbank POS",
"main": "dist/pos.js",
"module": "src/pos.js",
Expand Down
17 changes: 17 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

#Script for create the plugin artifact
echo "Travis tag: $TRAVIS_TAG"

if [ "$TRAVIS_TAG" = "" ]
then
TRAVIS_TAG='1.0.0'
fi

FILE1="package.json"

sed -i.bkp 's/ "version": "1.0.0",/ "version": "'"${TRAVIS_TAG#"v"}"'",/g' "$FILE1"

npm run build

echo "Plugin version: $TRAVIS_TAG"

0 comments on commit add8816

Please sign in to comment.