]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - .travis.yml
Merge pull request #1234 from virtualtam/lint
[github/shaarli/Shaarli.git] / .travis.yml
index 9ffb3d007b971db6e450c9744ffd3e778be3b7b7..cb81846f306a9001721de5e75ede34518e230779 100644 (file)
@@ -1,18 +1,54 @@
 sudo: false
-language: php
+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
+    - language: python
+      python: 3.6
+      cache:
+        directories:
+          - $HOME/.cache/pip
+      install:
+        - pip install mkdocs
+      script:
+        - mkdocs build --clean
+
 cache:
   directories:
     - $HOME/.composer/cache
-php:
-  - 7.0
-  - 5.6
-  - 5.5
-  - 5.4
-  - 5.3
+
 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