File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 15
15
global :
16
16
- COMPOSER_BIN_DIR=~/bin
17
17
- INTEGRATION_SETS=3
18
+ - NODE_JS_VERSION=6
18
19
matrix :
19
20
- TEST_SUITE=unit
20
21
- TEST_SUITE=integration INTEGRATION_INDEX=1
21
22
- TEST_SUITE=integration INTEGRATION_INDEX=2
22
23
- TEST_SUITE=integration INTEGRATION_INDEX=3
23
24
- TEST_SUITE=static
25
+ - TEST_SUITE=js
24
26
cache :
25
27
apt : true
26
- directories : $HOME/.composer/cache
28
+ directories :
29
+ - $HOME/.composer/cache
30
+ - $HOME/.nvm
31
+ - $HOME/node_modules
32
+ - $HOME/yarn.lock
27
33
matrix :
28
34
exclude :
29
35
- php : 5.6.29
30
36
env : TEST_SUITE=static
37
+ - php : 5.6.29
38
+ env : TEST_SUITE=js
31
39
before_install : ./dev/travis/before_install.sh
32
40
install : composer install --no-interaction --prefer-dist
33
41
before_script : ./dev/travis/before_script.sh
34
42
script :
35
43
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
36
- - phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER
44
+ - if [ $TEST_SUITE != "js" ]; then phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi
45
+ - if [ $TEST_SUITE == "js" ]; then grunt spec; fi
Original file line number Diff line number Diff line change @@ -76,4 +76,25 @@ case $TEST_SUITE in
76
76
77
77
cd ../../..
78
78
;;
79
+ js)
80
+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
81
+ export NVM_DIR=" $HOME /.nvm"
82
+ [ -s " $NVM_DIR /nvm.sh" ] && . " $NVM_DIR /nvm.sh" # This loads nvm
83
+ nvm install $NODE_JS_VERSION
84
+ nvm use $NODE_JS_VERSION
85
+ node --version
86
+
87
+ cp package.json.sample package.json
88
+ cp Gruntfile.js.sample Gruntfile.js
89
+ npm install -g yarn
90
+ yarn global add grunt-cli
91
+ yarn
92
+
93
+ echo " Installing Magento"
94
+ mysql -uroot -e ' CREATE DATABASE magento2;'
95
+ php bin/magento setup:install -q --admin-user=" admin" --admin-password=" 123123q" --admin-email=" admin@example.com" --admin-firstname=" John" --admin-lastname=" Doe"
96
+
97
+ echo " Deploying Static Content"
98
+ php bin/magento setup:static-content:deploy -f -q -j=2 --no-css --no-less --no-images --no-fonts --no-misc --no-html-minify
99
+ ;;
79
100
esac
Original file line number Diff line number Diff line change 1
1
{
2
- "name": "Magento2 ",
2
+ "name": "magento2 ",
3
3
"author": "Magento Commerce Inc.",
4
4
"description": "Magento2 node modules dependencies for local development",
5
- "version": "2.0.0",
6
5
"license": "(OSL-3.0 OR AFL-3.0)",
7
6
"repository": {
8
7
"type": "git",
38
37
"time-grunt": "^1.0.0",
39
38
"underscore": "^1.7.0",
40
39
"squirejs": "0.2.1"
41
- },
42
- "engines": {
43
- "node": ">=0.10.0"
44
40
}
45
41
}
You can’t perform that action at this time.
0 commit comments