Skip to content

Commit bc373be

Browse files
committed
Add Firefox
1 parent 298243b commit bc373be

File tree

4 files changed

+87
-1
lines changed

4 files changed

+87
-1
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo: required
2+
3+
language: python
4+
5+
services:
6+
- docker
7+
8+
script:
9+
- make build
10+
- make test
11+
12+
notifications:
13+
email:
14+
on_success: never
15+
on_failure: change

.verchew.ini

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[Make]
2+
3+
cli = make
4+
version = GNU Make
5+
6+
[Python]
7+
8+
cli = python
9+
version = Python 3.6.
10+
11+
[pipenv]
12+
13+
cli = pipenv
14+
version = 11.
15+
16+
[Node]
17+
18+
cli = node
19+
version = v8.
20+
21+
[npm]
22+
23+
cli = npm
24+
version = 5.
25+
26+
[Yarn]
27+
28+
cli = yarn
29+
version = 1.
30+
31+
[Firefox]
32+
33+
cli = firefox
34+
version = 55.
35+
message = This binary is absent on macOS.
36+
37+
[Firefox WebDriver]
38+
39+
cli = geckodriver
40+
version = 0.19.

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,17 @@ node --version
1515

1616
RUN sudo npm install --global yarn && \
1717
yarn --version
18+
19+
# Firefox
20+
21+
RUN sudo wget https://ftp.mozilla.org/pub/firefox/releases/55.0/linux-x86_64/en-US/firefox-55.0.tar.bz2 && \
22+
sudo tar -xjf firefox-55.0.tar.bz2 && \
23+
sudo rm -rf /opt/firefox* && \
24+
sudo rm firefox-55.0.tar.bz2 && \
25+
sudo mv firefox /opt/firefox55 && \
26+
sudo ln -sf /opt/firefox55/firefox-bin /usr/bin/firefox && \
27+
firefox --version
28+
29+
RUN curl -L https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz \
30+
| sudo tar xz -C /usr/local/bin && \
31+
geckodriver --version

Makefile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1+
TAG = python-node:latest
2+
13
.PHONY: all
24
all: build
35

6+
.PHONY: ci
7+
ci: build test
8+
9+
# LOCAL #######################################################################
10+
11+
.PHONY: doctor
12+
doctor:
13+
pip install --user verchew && python -m verchew --exit-code
14+
15+
# DOCKER ######################################################################
16+
417
.PHONY: build
518
build:
6-
docker build .
19+
docker build . --tag=$(TAG)
20+
21+
.PHONY: test
22+
test:
23+
docker run -v $(PWD):/host -i $(TAG) bash -c "cd ~ && cp -a /host/. . && make doctor"

0 commit comments

Comments
 (0)