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 (openai#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 committed May 17, 2021
1 parent fceb182 commit a068db0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
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
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 a068db0

Please sign in to comment.