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

Commit 88940ce

Browse files
committed
[skip ci] Fix conflicts with TheNodi PR
1 parent 87a1b1a commit 88940ce

File tree

2 files changed

+70
-85
lines changed

2 files changed

+70
-85
lines changed

.travis.yml

Lines changed: 69 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -22,67 +22,66 @@ matrix:
2222
# phpunit: false
2323
# distro: arch
2424
# 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: ""
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: ""
8181

8282
before_install:
8383
- travis_retry composer self-update
84-
# - git clone --depth=50 https://github.com/TheNodi/docker-valet-test-images.git $HOME/vdock
85-
# - if [[ -n $distro ]]; then travis_retry docker build -t thenodi/docker-${distro}-valet:latest $HOME/vdock/$distro; fi
84+
- if [[ -n $distro ]]; then travis_retry docker pull thenodi/docker-${distro}-valet:latest; fi
8685

8786
cache:
8887
directories:
@@ -97,19 +96,19 @@ script:
9796
- if [[ $phpunit = true ]]; then vendor/bin/phpunit; fi
9897

9998
# Start the container in detached mode
100-
# - >
101-
# if [[ -n $distro ]]; then
102-
# CONTAINER_ID=$( \
103-
# docker run --detach \
104-
# --volume="${PWD}":/workspace \
105-
# -e "REPOSITORY=/workspace" \
106-
# ${run_opts} \
107-
# thenodi/docker-${distro}-valet:latest
108-
# );
109-
# fi
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
110109
111110
# Prepare the container
112-
# - if [[ -n $distro ]]; then docker exec -it $CONTAINER_ID /prepare.sh; fi
111+
- if [[ -n $distro ]]; then docker exec -it $CONTAINER_ID /prepare.sh; fi
113112

114113
# Run functional tests
115-
# - if [[ -n $distro ]]; then docker exec -it -u valet $CONTAINER_ID /workspace/tests/Functional/run.sh; fi
114+
- if [[ -n $distro ]]; then docker exec -it -u valet $CONTAINER_ID /workspace/tests/Acceptance/docker.sh; fi

tests/Functional/run.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,8 @@ fi
1212
# Go into repository workspace
1313
cd $REPOSITORY
1414

15-
if [[ "${APP_ENV}" = "testing" ]]; then
16-
touch in_testing
17-
18-
if [[ ! -d '/run/resolvconf/interfaces/' ]]
19-
sudo mkdir -p '/run/resolvconf/interfaces/'
20-
fi
21-
22-
$NPATH="/run/resolvconf/interfaces/NetworkManager"
23-
$DMPATH="/workspace/cli/stubs/dnsmasq.conf"
24-
25-
grep -pb "nameserver" "${NPATH}" || echo 'nameserver 8.8.8.8' | sudo tee -a "${NPATH}" > /dev/null
26-
grep -pb "user=root" "${DMPATH}" || echo 'user=root' | sudo tee -a "${DMPATH}" > /dev/null
27-
fi
28-
2915
# Install valet
3016
./valet install
3117

3218
# Run Functional tests
33-
vendor/bin/phpunit --group functional
19+
vendor/bin/phpunit --group functional --exclude-group none

0 commit comments

Comments
 (0)