Skip to content

Commit 4d23b83

Browse files
committed
[INFRA-260]: correct symlinks and version testing
1 parent bd7a471 commit 4d23b83

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ RUN virtualenv v5.0 && \
3333
pip install -r /tmp/external_requirements.txt
3434

3535
RUN ln -sf /home/syncano/v4.2/bin/python /usr/bin/python && \
36-
ln -sf /home/syncano/v5.0/bin/python /usr/bin/python27-50 && \
37-
ln -sf /home/syncano/v4.2/bin/python /usr/bin/python27-42
36+
ln -sf /home/syncano/v5.0/bin/python /usr/bin/python27-lib5.0 && \
37+
ln -sf /home/syncano/v4.2/bin/python /usr/bin/python27-lib4.2
3838
# create a special user to run code
3939
# user without root privileges greatly improves security
4040
RUN useradd syncano -d /tmp -s /bin/bash

‎circle.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ dependencies:
99
test:
1010
override:
1111
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
12-
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-50 /tmp/test.py
12+
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
13+
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
1314
- docker run -it -v `pwd`/test2.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
14-
- docker run -it -v `pwd`/test3.py:/tmp/test.py quay.io/syncano/python-codebox python27-50 /tmp/test.py
15+
- docker run -it -v `pwd`/test2.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
16+
- docker run -it -v `pwd`/test3.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
1517

1618
deployment:
1719
production:

‎test2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import syncano
2-
assert syncano.__version__ == '4.1.0'
2+
assert syncano.__version__ == '4.2.0'

‎test3.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import syncano
2-
assert syncano.__version__ == '4.2.0'
2+
assert syncano.__version__ == '5.0.0'

0 commit comments

Comments
 (0)