Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
docker pull
Browse files Browse the repository at this point in the history
  • Loading branch information
wxh06 committed Jun 27, 2020
1 parent 19ae552 commit 7e0d995
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
make docker-pull
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -32,4 +33,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
docker pull bash && docker pull openjdk && docker pull php && docker pull ruby && pytest --cov=.
pytest --cov=.
15 changes: 1 addition & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@ before_install:
install:
- make pip
- pip install -U flake8 pylint pytest-cov codecov
- docker pull gcc:4.8 # For gcc & g++
- docker pull gcc:4.9 # For gccgo
- docker pull golang:1 # For go
- docker pull python:3 # For python3
- docker pull python:2 # For python2
- docker pull pypy:3 # For pypy3
- docker pull pypy:2 # For pypy2
- docker pull node:12 # For node
- docker pull openjdk # For javac and java
- docker pull clangbuiltlinux/ubuntu:llvm10-latest # For clang-10 & clang++-10
- docker pull clangbuiltlinux/ubuntu:llvm11-latest # For clang-11 & clang++-11
- docker pull bash # For bash
- docker pull php # For php
- docker pull ruby # For ruby
- make docker-pull
script:
- make lint
- make pytest
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ pytest:
pytest --cov=dockerjudge


docker-pull:
sh docker-pull.sh


lint: flake8 pylint

flake8:
Expand Down
15 changes: 15 additions & 0 deletions docker-pull.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
docker pull bash # For bash
docker pull clangbuiltlinux/ubuntu:llvm10-latest # For clang-10 & clang++-10
docker pull clangbuiltlinux/ubuntu:llvm11-latest # For clang-11 & clang++-11
docker pull gcc:4.8 # For gcc & g++
docker pull gcc:4.9 # For gccgo
docker pull golang:1 # For go
docker pull mono # For csc, vbnc & mono
docker pull node:12 # For node
docker pull openjdk # For javac and java
docker pull php # For php
docker pull pypy:3 # For pypy3
docker pull pypy:2 # For pypy2
docker pull python:3 # For python3
docker pull python:2 # For python2
docker pull ruby # For ruby

0 comments on commit 7e0d995

Please sign in to comment.