forked from mozilla-l10n/webdashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
php:
- 5.6
- 7.0
- 7.2
before_install:
## Install latest version of node
- nvm install node
## Disabling xdebug
- phpenv config-rm xdebug.ini
install:
# Update composer, install dependencies
- flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- composer self-update
- composer install $flags
## Install ESLint
- npm install -g eslint
before_script:
## Travis configuration
- cp app/config/settings.inc.php.ini app/config/settings.inc.php
script:
- vendor/atoum/atoum/bin/atoum -d tests/units/ --use-light-report
- vendor/bin/php-cs-fixer --diff --dry-run -v fix
- eslint web/assets/js
notifications:
irc:
channels:
- "irc.mozilla.org#l10n-tools"
on_success: always
on_failure: always
use_notice: true
template:
- "%{repository} ; %{commit} (%{author}) : %{message} "
- "Build details: %{build_url} ; changes: %{compare_url}"