Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 07bd9e9

Browse files
committed
Fix travis-ci build and show Travis CI badges
1 parent 537b150 commit 07bd9e9

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
# -p tcp -d 172.17.0.1 --dport 24444 -j ACCEPT:
1313
# iptables: No chain/target/match by that name. (exit status 1)
1414
before_install:
15+
- ./host-scripts/gen-scm-source.sh
1516
- docker build -t selenium .
1617

1718
install:

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,16 @@ RUN SHA="e4a37c6f8d1cb68f3813c7fdbcfee9a929788a75" \
602602
# && rm firefox-${FF_VER}.${FF_LANG}.linux64.tar.bz2 \
603603
# ;done
604604

605+
#-----------#
606+
# dumb-init #
607+
#-----------#
608+
# Use dumb-init to allow `docker stop` to end gracefully
609+
# result: it didn't help
610+
# RUN export DUMB_VERS="1.0.1" \
611+
# && wget -nv -O /tmp/dumb-init.deb \
612+
# "https://github.com/Yelp/dumb-init/releases/download/v${DUMB_VERS}/dumb-init_${DUMB_VERS}_amd64.deb" \
613+
# && dpkg -i /tmp/dumb-init.deb
614+
605615
# ------------------------#
606616
# Sauce Connect Tunneling #
607617
# ------------------------#

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Selenium in Docker with Chrome and Firefox
2+
[![Build Status](https://travis-ci.org/elgalu/docker-selenium.svg?branch=master)](https://travis-ci.org/elgalu/docker-selenium)
23
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/elgalu/docker-selenium?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
34

45
* selenium server grid with 2 nodes (chrome & firefox)

test/hola.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797

9898
print ("Sending RETURN key")
9999
elem.send_keys(Keys.RETURN)
100+
time.sleep(msleep)
100101

101102
print ("Ensure no results were found")
102103
assert "No results found." not in driver.page_source
@@ -106,4 +107,7 @@
106107
time.sleep(msleep)
107108

108109
print ("All done. SUCCESS!")
109-
driver.quit()
110+
try:
111+
driver.quit()
112+
except:
113+
pass

0 commit comments

Comments
 (0)