2019-02-04 23:45:45 +03:00
|
|
|
dist: xenial
|
2018-03-05 16:53:53 +03:00
|
|
|
services:
|
|
|
|
- postgresql
|
2018-12-27 20:54:31 +03:00
|
|
|
addons:
|
|
|
|
postgresql: 9.6
|
|
|
|
|
2019-02-04 23:45:45 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-05-07 00:09:14 +03:00
|
|
|
- name: "js lint"
|
2019-02-05 15:57:20 +03:00
|
|
|
language: node_js
|
2020-04-22 20:08:09 +03:00
|
|
|
node_js: 10
|
2019-05-07 00:09:14 +03:00
|
|
|
script: "npm run lint:js"
|
|
|
|
- name: "css lint"
|
|
|
|
language: node_js
|
2020-04-22 20:08:09 +03:00
|
|
|
node_js: 10
|
2019-05-07 00:09:14 +03:00
|
|
|
script: "npm run lint:css"
|
|
|
|
- name: "npm audit"
|
|
|
|
language: node_js
|
2020-04-22 20:08:09 +03:00
|
|
|
node_js: 10
|
2019-05-07 00:09:14 +03:00
|
|
|
script: "npm run lint:audit"
|
2020-04-22 19:13:58 +03:00
|
|
|
- name: "tests"
|
2019-02-04 23:45:45 +03:00
|
|
|
language: node_js
|
2020-04-22 20:08:09 +03:00
|
|
|
node_js: 10
|
2019-02-04 23:45:45 +03:00
|
|
|
env:
|
|
|
|
- NODE_ENV=tests
|
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
before_script:
|
|
|
|
- cp .env-dist .env
|
|
|
|
- createdb test-blurts
|
|
|
|
- npm install npm@latest -g
|
|
|
|
|
|
|
|
- name: "l10n lint"
|
|
|
|
language: python
|
|
|
|
install:
|
|
|
|
- sudo pip install compare-locales
|
|
|
|
script:
|
2019-05-10 01:20:06 +03:00
|
|
|
- moz-l10n-lint l10n.toml
|
2019-02-04 23:45:45 +03:00
|
|
|
- compare-locales l10n.toml . `ls locales`
|