File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 41
41
-f elasticdl/docker/Dockerfile
42
42
--build-arg BASE_IMAGE="$BASE_IMAGE" .
43
43
# Run pre-commit checks.
44
- - docker run --rm -it -v $TRAVIS_BUILD_DIR:/work -w /work
44
+ - docker run --rm -it
45
+ -v $TRAVIS_BUILD_DIR:/work -w /work
45
46
-v $HOME/.cache:/root/.cache
46
- elasticdl:dev bash -c "scripts/pre-commit.sh"
47
+ elasticdl:dev
48
+ bash -c "make -f elasticdl/Makefile && pre-commit run -a"
47
49
# Run a minikube cluster
48
50
- bash scripts/travis/start_minikube.sh
49
51
# Run unit tests not related to ODPS
Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ Requirements:
10
10
1 . Make
11
11
1 . Gnuplot
12
12
1 . ImageMagick
13
-
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG EXTRA_PYPI_INDEX=https://pypi.org/simple
6
6
7
7
RUN apt-get -qq update && \
8
8
apt-get -qq install -y unzip curl git software-properties-common g++ wget \
9
- shellcheck libeigen3-dev > /dev/null && \
9
+ shellcheck libeigen3-dev clang-format > /dev/null && \
10
10
python -m pip install --quiet --upgrade pip
11
11
12
12
COPY elasticdl/requirements.txt /requirements.txt
You can’t perform that action at this time.
0 commit comments