This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree 2 files changed +13
-6
lines changed 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:3.6
2
2
MAINTAINER source{ d}
3
3
4
- RUN apk add --no-cache --update python python3 py-pip py2-pip git
4
+ ARG DEVDEPS=native/dev_deps
5
+ ARG CONTAINER_DEVDEPS=/tmp/dev_deps
6
+ ARG PYDETECTOR_VER=0.10.3
5
7
8
+ RUN apk add --no-cache --update python python3 py-pip py2-pip git
6
9
7
10
ADD build /opt/driver/bin
8
11
ADD native/python_package /tmp/python_driver
9
12
RUN pip3 install /tmp/python_driver
10
13
RUN yes|rm -rf /tmp/python_driver
11
14
12
- ADD native/dev_deps /tmp/dev_deps
13
- RUN pip2 install -U /tmp/dev_deps/python-pydetector || pip2 install pydetector-bblfsh==0.10.3
14
- RUN pip3 install -U /tmp/dev_deps/python-pydetector || pip3 install pydetector-bblfsh==0.10.3
15
- RUN yes|rm -rf /tmp/dev_deps
15
+ ADD ${ DEVDEPS} ${ CONTAINER_DEVDEPS}
16
+ ENV ENV_DEVDEPS=${ DEVDEPS}
17
+ ENV ENV_PYDETECTOR_VER=${ PYDETECTOR_VER}
18
+ RUN pip2 install -U ${ CONTAINER_DEVDEPS} /python-pydetector || pip2 install pydetector-bblfsh==${ PYDETECTOR_VER}
19
+ RUN pip3 install -U ${ CONTAINER_DEVDEPS} /python-pydetector || pip3 install pydetector-bblfsh==${ PYDETECTOR_VER}
20
+ RUN yes|rm -rf ${ CONTAINER_DEVDEPS}
16
21
17
22
CMD /opt/driver/bin/driver
Original file line number Diff line number Diff line change
1
+ DEV_DEPS ?= native/dev_deps
2
+
1
3
test-native-internal :
2
- pip3 install --user native/dev_deps /python-pydetector/ || pip3 install --user pydetector-bblfsh
4
+ pip3 install --user ${DEV_DEPS} /python-pydetector/ || pip3 install --user pydetector-bblfsh
3
5
pip3 install --user git+https://github.com/python/mypy.git@0bb2d1680e8b9522108b38d203cb73021a617e64#egg=mypy-lang
4
6
cd native/python_package/test && \
5
7
python3 -m unittest discover
You can’t perform that action at this time.
0 commit comments