-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
61 lines (56 loc) · 1.52 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#sudo: required
#
#services:
# - docker
#
#before_install:
## - docker pull racecourse/courser
# - if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
# - docker build -t courser .
# - docker run -d --name=courser courser
# - docker ps -a
#
#before_cache:
# # Save tagged docker images
# - >
# mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
# | xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
#
#script:
# - docker run courser /bin/bash -c "composer run-script test"
#
#
#cache:
# bundler: true
# directories:
# - $HOME/docker
sudo: false
dist: trusty
cache:
directories:
- $HOME/.composer/cache
language: php
matrix:
include:
- php: 7.0
env: ANALYSIS=true
- php: 7.1
env: COMPOSER_ARGS='--prefer-lowest'
allow_failures:
- php: nightly
install:
- composer update $COMPOSER_ARGS
script:
- mkdir -p build/logs
# - if [[ "$ANALYSIS" != 'true' ]]; then vendor/bin/phpunit ; fi
# - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpcs ; fi
#after_success:
# - if [[ "$ANALYSIS" == 'true' ]]; then php vendor/bin/coveralls --coverage_clover=clover.xml -v ; fi
notifications:
slack: eclogue:QxiUd6aEHYK6K7n7PHNxS4tp
email:
recipients:
- mulberry10th@gmail.com
on_success: never
on_failure: always