Skip to content
This repository was archived by the owner on Dec 9, 2019. It is now read-only.

Commit a32e631

Browse files
committed
Remove unnecesary docker tests and try support for php 7.2
1 parent 012d9aa commit a32e631

File tree

1 file changed

+6
-90
lines changed

1 file changed

+6
-90
lines changed

.travis.yml

Lines changed: 6 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
dist: trusty
2-
services: docker
32
language: php
43

54
sudo: required
@@ -9,79 +8,14 @@ env:
98
- setup=basic
109
- APP_ENV=testing
1110

12-
matrix:
13-
include:
14-
- php: 5.6
15-
env: phpunit=true
16-
- php: 7.0
17-
env: phpunit=true
18-
- php: 7.1
19-
env: phpunit=true
20-
# - php: 7.1
21-
# env:
22-
# phpunit: false
23-
# distro: arch
24-
# run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
25-
- php: 7.0
26-
env:
27-
phpunit: false
28-
distro: centos7
29-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
30-
- php: 7.0
31-
env:
32-
phpunit: false
33-
distro: fedora24
34-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
35-
- php: 7.0
36-
env:
37-
phpunit: false
38-
distro: fedora25
39-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
40-
- php: 7.0
41-
env:
42-
phpunit: false
43-
distro: ubuntu1604
44-
run_opts: ""
45-
- php: 7.0
46-
env:
47-
phpunit: false
48-
distro: ubuntu1404
49-
run_opts: ""
50-
allow_failures:
51-
- php: 7.1
52-
env:
53-
phpunit: false
54-
distro: arch
55-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
56-
- php: 7.0
57-
env:
58-
phpunit: false
59-
distro: centos7
60-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
61-
- php: 7.0
62-
env:
63-
phpunit: false
64-
distro: fedora24
65-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
66-
- php: 7.0
67-
env:
68-
phpunit: false
69-
distro: fedora25
70-
run_opts: "'--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro'"
71-
- php: 7.0
72-
env:
73-
phpunit: false
74-
distro: ubuntu1604
75-
run_opts: ""
76-
- php: 7.0
77-
env:
78-
phpunit: false
79-
distro: ubuntu1404
80-
run_opts: ""
11+
php:
12+
- 5.6
13+
- 7.0
14+
- 7.1
15+
- nightly
8116

8217
before_install:
8318
- travis_retry composer self-update
84-
- if [[ -n $distro ]]; then travis_retry docker pull thenodi/docker-${distro}-valet:latest; fi
8519

8620
cache:
8721
directories:
@@ -93,22 +27,4 @@ install:
9327
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
9428

9529
script:
96-
- if [[ $phpunit = true ]]; then vendor/bin/phpunit; fi
97-
98-
# Start the container in detached mode
99-
- >
100-
if [[ -n $distro ]]; then
101-
CONTAINER_ID=$( \
102-
docker run --detach \
103-
--volume="${PWD}":/workspace \
104-
-e "REPOSITORY=/workspace" \
105-
${run_opts} \
106-
thenodi/docker-${distro}-valet:latest
107-
);
108-
fi
109-
110-
# Prepare the container
111-
- if [[ -n $distro ]]; then docker exec -it $CONTAINER_ID /prepare.sh; fi
112-
113-
# Run functional tests
114-
- if [[ -n $distro ]]; then docker exec -it -u valet $CONTAINER_ID /workspace/tests/Acceptance/docker.sh; fi
30+
- vendor/bin/phpunit

0 commit comments

Comments
 (0)