This repository was archived by the owner on Jul 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +22
-15
lines changed
Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 2424 python -m pip install --upgrade pip
2525 pip install flake8 pytest-cov
2626 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+ make docker-pull
2728 - name : Lint with flake8
2829 run : |
2930 # stop the build if there are Python syntax errors or undefined names
3233 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3334 - name : Test with pytest
3435 run : |
35- docker pull bash && docker pull openjdk && docker pull php && docker pull ruby && pytest --cov=.
36+ pytest --cov=.
Original file line number Diff line number Diff line change @@ -17,20 +17,7 @@ before_install:
1717install :
1818 - make pip
1919 - pip install -U flake8 pylint pytest-cov codecov
20- - docker pull gcc:4.8 # For gcc & g++
21- - docker pull gcc:4.9 # For gccgo
22- - docker pull golang:1 # For go
23- - docker pull python:3 # For python3
24- - docker pull python:2 # For python2
25- - docker pull pypy:3 # For pypy3
26- - docker pull pypy:2 # For pypy2
27- - docker pull node:12 # For node
28- - docker pull openjdk # For javac and java
29- - docker pull clangbuiltlinux/ubuntu:llvm10-latest # For clang-10 & clang++-10
30- - docker pull clangbuiltlinux/ubuntu:llvm11-latest # For clang-11 & clang++-11
31- - docker pull bash # For bash
32- - docker pull php # For php
33- - docker pull ruby # For ruby
20+ - make docker-pull
3421script :
3522 - make lint
3623 - make pytest
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ pytest:
3737 pytest --cov=dockerjudge
3838
3939
40+ docker-pull :
41+ sh docker-pull.sh
42+
43+
4044lint : flake8 pylint
4145
4246flake8 :
Original file line number Diff line number Diff line change 1+ docker pull bash # For bash
2+ docker pull clangbuiltlinux/ubuntu:llvm10-latest # For clang-10 & clang++-10
3+ docker pull clangbuiltlinux/ubuntu:llvm11-latest # For clang-11 & clang++-11
4+ docker pull gcc:4.8 # For gcc & g++
5+ docker pull gcc:4.9 # For gccgo
6+ docker pull golang:1 # For go
7+ docker pull mono # For csc, vbnc & mono
8+ docker pull node:12 # For node
9+ docker pull openjdk # For javac and java
10+ docker pull php # For php
11+ docker pull pypy:3 # For pypy3
12+ docker pull pypy:2 # For pypy2
13+ docker pull python:3 # For python3
14+ docker pull python:2 # For python2
15+ docker pull ruby # For ruby
You can’t perform that action at this time.
0 commit comments