use the correct package maanger in Dockerfile
Some checks failed
Build and publish the docker image / build (push) Failing after 15s
Some checks failed
Build and publish the docker image / build (push) Failing after 15s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
48b1d9e565
commit
cd580c3e22
@ -1,6 +1,7 @@
|
||||
*.png
|
||||
*.md
|
||||
LICENSE
|
||||
docker-compose.yml
|
||||
accounts.*
|
||||
LICENSE.txt
|
||||
compose.yml
|
||||
Dockerfile
|
||||
tests/
|
||||
|
51
.travis.yml
51
.travis.yml
@ -1,51 +0,0 @@
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
if: (NOT type IN (pull_request)) AND (branch = master)
|
||||
dist: bionic
|
||||
language: python
|
||||
python:
|
||||
- 3.6
|
||||
services:
|
||||
- docker
|
||||
- xvfb
|
||||
script:
|
||||
- sudo apt update
|
||||
- sudo apt install --force-yes chromium-chromedriver
|
||||
- wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip
|
||||
- unzip chrome.zip
|
||||
- cd chrome-linux
|
||||
- sudo rm /usr/bin/google-chrome
|
||||
- sudo ln -s chrome /usr/bin/google-chrome
|
||||
- cd ..
|
||||
- pip3 install --upgrade pip
|
||||
- pip3 install -U seleniumbase pytest
|
||||
- docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT
|
||||
- sleep 10
|
||||
- cd tests
|
||||
- pytest --headless -n 8 --reruns 10 --reruns-delay 2
|
||||
- stage: pr
|
||||
if: type IN (pull_request)
|
||||
dist: bionic
|
||||
language: python
|
||||
python:
|
||||
- 3.6
|
||||
services:
|
||||
- docker
|
||||
- xvfb
|
||||
script:
|
||||
- sudo apt update
|
||||
- sudo apt install --force-yes chromium-chromedriver
|
||||
- wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip
|
||||
- unzip chrome.zip
|
||||
- cd chrome-linux
|
||||
- sudo rm /usr/bin/google-chrome
|
||||
- sudo ln -s chrome /usr/bin/google-chrome
|
||||
- cd ..
|
||||
- pip3 install --upgrade pip
|
||||
- pip3 install -U seleniumbase pytest
|
||||
- docker build -t $IMAGE_NAME:$TRAVIS_COMMIT .
|
||||
- docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT
|
||||
- sleep 10
|
||||
- cd tests
|
||||
- pytest --headless -n 8 --reruns 3 --reruns-delay 2
|
@ -13,7 +13,8 @@ RUN nimble scss
|
||||
|
||||
FROM debian:unstable-slim
|
||||
|
||||
RUN apk --no-cache add pcre ca-certificates
|
||||
RUN apt update
|
||||
RUN apt install -y pcre ca-certificates
|
||||
RUN useradd -d /src -u 1001 nitter
|
||||
|
||||
WORKDIR /srv
|
||||
|
Loading…
x
Reference in New Issue
Block a user