Skip to content

Commit f791340

Browse files
authored
Add chrome testing to install browser tools (#139)
* Add chrome testing to install browser tools * Create folder for chrome for testing * Add sudo
1 parent 03c7d6f commit f791340

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.circleci/test-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ jobs:
4848
executor: <<parameters.executor>>
4949
steps:
5050
- jq/install
51+
- run: sudo mkdir /usr/local/bin/testing
5152
- browser-tools/install_browser_tools:
5253
firefox_version: <<parameters.firefox_version>>
5354
replace_existing_chrome: <<parameters.replace_existing_chrome>>
5455
chrome_version: <<parameters.chrome_version>>
5556
install_edge: true
5657
edge_version: <<parameters.edge_version>>
58+
install_chrome_for_testing: true
59+
install_chrome_for_testing_driver: true
60+
chrome_for_testing_driver_install_dir: /usr/local/bin/testing
5761
- checkout
5862
int-tests-chrome:
5963
parameters:

src/commands/install_browser_tools.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ parameters:
7676
type: string
7777
default: /usr/local/bin
7878
description: >
79-
Directory in which to install Chromedriver
79+
Directory in which to install Chromedriver.
80+
If installling Chrome Testing Driver as well, use a different directoy for each.
8081
8182
chrome_version:
8283
default: latest
@@ -109,6 +110,29 @@ parameters:
109110
description: >
110111
Directory in which to install Edge WebDriver
111112
113+
install_chrome_for_testing:
114+
default: false
115+
type: boolean
116+
description: Install Chrome for testing?
117+
118+
install_chrome_for_testing_driver:
119+
default: false
120+
type: boolean
121+
description: Install Chrome for testing with driver?
122+
123+
chrome_for_testing_version:
124+
type: string
125+
default: latest
126+
description: >
127+
Version of Chrome for testing to install, defaults to the latest stable release.
128+
129+
chrome_for_testing_driver_install_dir:
130+
type: string
131+
default: /usr/local/bin
132+
description: >
133+
Directory in which to install Chromedriver.
134+
If installling chromedriver as well, use a different directoy for each.
135+
112136
steps:
113137
- when:
114138
condition: <<parameters.install_firefox>>
@@ -123,6 +147,13 @@ steps:
123147
- install_geckodriver:
124148
version: <<parameters.geckodriver_version>>
125149
install_dir: <<parameters.geckodriver_install_dir>>
150+
- when:
151+
condition: <<parameters.install_chrome_for_testing>>
152+
steps:
153+
- install_chrome_for_testing:
154+
version: <<parameters.chrome_for_testing_version>>
155+
install_chromedriver: <<parameters.install_chrome_for_testing_driver>>
156+
install_dir: <<parameters.chrome_for_testing_driver_install_dir>>
126157

127158
- when:
128159
condition: <<parameters.install_chrome>>

0 commit comments

Comments
 (0)