]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Use Travis stages to run JS tests separately 1116/head
authorArthurHoaro <arthur@hoa.ro>
Sat, 31 Mar 2018 11:49:07 +0000 (13:49 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 5 May 2018 12:12:46 +0000 (14:12 +0200)
.editorconfig
.travis.yml

index 8783e4cb00700f39d9927e2b8c026d5f8b2a679d..f0d83ee3caf7185e85208508eaa69bc1a5685836 100644 (file)
@@ -10,7 +10,7 @@ trim_trailing_whitespace = true
 indent_style = space
 indent_size = 4
 
-[*.{htaccess,html,js,json,xml}]
+[*.{htaccess,html,js,json,xml,yml}]
 indent_size = 2
 
 [*.php]
index 1b2bf97b8a785d5f5942571d9362d310517f0af1..14b91cf2e3201c347eddf65e99d478c7e0c06d87 100644 (file)
@@ -1,23 +1,44 @@
 sudo: false
 dist: trusty
-language: php
+
+matrix:
+  include:
+    - language: php
+      php: 7.2
+    - language: php
+      php: 7.1
+    - language: php
+      php: 7.0
+    - language: php
+      php: 5.6
+    - language: node_js
+      node_js: 8
+      cache:
+        yarn: true
+        directories:
+          - $HOME/.cache/yarn
+
+      install:
+        - yarn install
+
+      before_script:
+        - PATH=${PATH//:\.\/node_modules\/\.bin/}
+
+      script:
+        - yarn run build # Just to be sure that the build isn't broken
+        - make eslint
+
 cache:
-  yarn: true
   directories:
     - $HOME/.composer/cache
-    - $HOME/.cache/yarn
-php:
-  - 7.2
-  - 7.1
-  - 7.0
-  - 5.6
+
 install:
-  - yarn install
   - composer install --prefer-dist
+
 before_script:
   - PATH=${PATH//:\.\/node_modules\/\.bin/}
+
 script:
   - make clean
   - make check_permissions
-  - make eslint
   - make all_tests