File tree 4 files changed +29
-13
lines changed 4 files changed +29
-13
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,4 @@ matrix:
39
39
before_install : ./dev/travis/before_install.sh
40
40
install : composer install --no-interaction --prefer-dist
41
41
before_script : ./dev/travis/before_script.sh
42
- script :
43
- - test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
44
- - if [ $TEST_SUITE != "js" ]; then phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi
45
- - if [ $TEST_SUITE == "js" ]; then grunt spec; fi
42
+ script : ./dev/travis/script.sh
Original file line number Diff line number Diff line change @@ -19,3 +19,17 @@ phpenv rehash;
19
19
20
20
# If env var is present, configure support for 3rd party builds which include private dependencies
21
21
test -n " $GITHUB_TOKEN " && composer config github-oauth.github.com " $GITHUB_TOKEN " || true
22
+
23
+ # Node.js setup via NVM
24
+ if [ $TEST_SUITE = " static" ] || [ test $TEST_SUITE == " js" ]; then
25
+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
26
+ export NVM_DIR=" $HOME /.nvm"
27
+ [ -s " $NVM_DIR /nvm.sh" ] && . " $NVM_DIR /nvm.sh" # This loads nvm
28
+
29
+ nvm install $NODE_JS_VERSION
30
+ nvm use $NODE_JS_VERSION
31
+ node --version
32
+
33
+ npm install -g yarn
34
+ yarn global add grunt-cli
35
+ fi
Original file line number Diff line number Diff line change @@ -75,19 +75,14 @@ case $TEST_SUITE in
75
75
cat " $changed_files_ce " | sed ' s/^/ + including /'
76
76
77
77
cd ../../..
78
+
79
+ cp package.json.sample package.json
80
+ cp Gruntfile.js.sample Gruntfile.js
81
+ yarn
78
82
;;
79
83
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
84
cp package.json.sample package.json
88
85
cp Gruntfile.js.sample Gruntfile.js
89
- npm install -g yarn
90
- yarn global add grunt-cli
91
86
yarn
92
87
93
88
echo " Installing Magento"
Original file line number Diff line number Diff line change
1
+ case $TEST_SUITE in
2
+ static)
3
+ TEST_FILTER=' --filter "Magento\\Test\\Php\\LiveCodeTest"' || true
4
+ phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER
5
+ grunt static
6
+ ;;
7
+ js)
8
+ grunt spec;
9
+ ;;
10
+ esac
You can’t perform that action at this time.
0 commit comments