File tree Expand file tree Collapse file tree 4 files changed +87
-1
lines changed
Expand file tree Collapse file tree 4 files changed +87
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change @@ -15,3 +15,17 @@ node --version
1515
1616RUN sudo npm install --global yarn && \
1717yarn --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
Original file line number Diff line number Diff line change 1+ TAG = python-node:latest
2+
13.PHONY : all
24all : 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
518build :
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"
You can’t perform that action at this time.
0 commit comments