Only install Chrome and Nginx in the build job that uses it

This commit changes Travis configuration to only install Chrome and Nginx in the e2e tests build job, which is the only one that requires those packages. This change should save a little bit of time in the Travis build as before Travis was installing Chrome and Nginx in all the jobs.
This commit is contained in:
Rodrigo Primo 2019-03-21 15:44:02 -03:00
parent aecb0fd4fc
commit 6001b0177e
1 changed files with 5 additions and 6 deletions

View File

@ -1,12 +1,6 @@
language: php
dist: trusty
addons:
chrome: stable
apt:
packages:
- nginx
sudo: false
cache:
@ -40,6 +34,11 @@ matrix:
- name: "e2e tests"
php: 7.2
env: WP_VERSION=latest WP_MULTISITE=0 RUN_E2E=1
addons:
chrome: stable
apt:
packages:
- nginx
- name: "Unit tests code coverage"
php: 7.3
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1