forked from geokrety/geokrety-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 964 Bytes
/
.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
39
40
41
42
language: php
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.php-cs-fixer
branches:
except:
- /\+travis\d+$/
php:
- 5.6
- 7.1
- 7.2
addons:
apt:
packages:
- moreutils
- gettext
install:
- composer require --dev friendsofphp/php-cs-fixer
- sudo curl -L https://raw.githubusercontent.com/smarty-gettext/smarty-gettext/master/tsmarty2c.php -o /usr/local/bin/tsmarty2c
- sudo chmod 0755 /usr/local/bin/tsmarty2c
script:
- vendor/bin/php-cs-fixer --no-interaction --dry-run --diff -v fix
# Check against CRLF
- scripts/check-crlf.sh
# Check against trailing whitespaces on php files
- scripts/check-trailling-spaces.sh .
# Check against non utf-8 files
- scripts/check-utf8.sh .
jobs:
include:
- stage: deploy
php: 5.6
script:
- scripts/export-translations-github.sh
- scripts/import-translations-github.sh