Skip to content

Commit

Permalink
fix build by disabling mujoco and moving to newer python patch versio…
Browse files Browse the repository at this point in the history
…ns (#2220)

* reverting to older version of 3.6 python to test if the build is failing because of that

* revert 3.7 to 3.7.3 for the build

* revert python 3.8 version to 3.8.1

* do not install mujoco on 3.8 and 3.9

* enable mujoco for 3.7

* .

* .

* .

* use regex to navigate python version dependent package installation

* .

* try only one python version at a time

* switch to possibly more popular python tag for 3.6

* disable mujoco
  • Loading branch information
pzhokhov authored May 17, 2021
1 parent a5a6ae6 commit ee5ee3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ python:
services:
- docker
env:
- PY_VER=3.6.8
- PY_VER=3.7.3
- PY_VER=3.8.6
- PY_VER=3.9.0
- PY_VER=3.6.13
- PY_VER=3.7.10
- PY_VER=3.8.9
- PY_VER=3.9.4

install: "" # so travis doesn't do pip install requirements.txt
script:
Expand All @@ -21,4 +21,4 @@ deploy:
password: $TWINE_PASSWORD
on:
tags: true
condition: $PY_VER = 3.6.8
condition: $PY_VER = 3.8.9
3 changes: 2 additions & 1 deletion py.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ COPY . /usr/local/gym/
WORKDIR /usr/local/gym/
# install all extras for python 3.6 and 3.7, and skip mujoco add-ons for 3.8 and 3.9
# as mujoco 1.50 does not seem to work with 3.8 and 3.9
RUN bash -c "[[ $PYTHON_VER =~ 3\.[6-7]\.[0-9] ]] && pip install -e .[all] || pip install -e .[nomujoco]"
# RUN bash -c "[[ $PYTHON_VER =~ 3\.[6-7]\.[0-9] ]] && pip install -e .[all] || pip install -e .[nomujoco]"
RUN pip install -e .[nomujoco]

ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"]
CMD ["pytest","--forked"]

0 comments on commit ee5ee3a

Please sign in to comment.