]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - .travis.yml
Add SASSLint makefile target, and run it in CI
[github/shaarli/Shaarli.git] / .travis.yml
index 2a5ff5e3cafb1546ee6a815091da4a5035b3f35a..eee1ca749dc54a3303f125b3748d102808f2ab51 100644 (file)
@@ -1,23 +1,45 @@
 sudo: false
-language: php
-addons:
-  apt:
-    packages:
-      - locales
-      - language-pack-de
-      - language-pack-fr
+dist: trusty
+
+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
+        - make sasslint
+
 cache:
   directories:
     - $HOME/.composer/cache
-php:
-  - 7.1
-  - 7.0
-  - 5.6
-  - 5.5
+
 install:
-  - composer self-update
   - composer install --prefer-dist
+
+before_script:
+  - PATH=${PATH//:\.\/node_modules\/\.bin/}
+
 script:
   - make clean
   - make check_permissions
-  - make test
+  - make all_tests