Skip to content

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
budnix committed Jul 19, 2017
2 parents d25da7c + 5ba25f6 commit 56c6714
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
handsontable
.idea

7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
language: node_js

env:
global:
HOT_BRANCH=master

sudo: false

node_js:
- "6"

before_script:
- "export TZ=Europe/Warsaw"
- "chmod ugo+x scripts/run-tests.sh"

script: ./scripts/run-tests.sh
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/handsontable/hot-builder.git"
},
"author": "Handsoncode <[email protected]>",
"version": "1.0.2",
"version": "1.0.3",
"main": "src/main.js",
"bin": "./src/main.js",
"scripts": {
Expand Down
28 changes: 28 additions & 0 deletions scripts/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

INFO='\033[1;33m'
DONE='\033[0;32m'
NC='\033[0m'

echo -e "${INFO}*** Cloning the Handsontable repository (the ${HOT_BRANCH} branch) ***${NC}"

git clone -b $HOT_BRANCH https://github.com/handsontable/handsontable.git
# Remove the 'dist' directory to make sure that the following directory will only contain only newly generated files by the 'hot-builder'.
rm -r handsontable/dist

echo -e "${INFO}*** Installing all necessary dependencies via 'npm install' ***${NC}"

cd handsontable/
npm install
cd ..

echo -e "${INFO}*** Building Handsontable using 'hot-builder' ***${NC}"

# Overwrite handsontable/dist files with this newle generated.
node src/main.js build -i handsontable/ -o handsontable/dist -a -U --quiet

echo -e "${INFO}*** Testing Handsontable generated package using regular Handsontable tests ***${NC}"

cd handsontable/
npm run test:e2e.dump
./node_modules/.bin/grunt test-handsontable

0 comments on commit 56c6714

Please sign in to comment.