加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
travis_setup.sh 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Joshua Achiam 提交于 2018-11-08 08:05 . Launch!
#!/usr/bin/env bash
set -e
mkdir -p $HOME/.mujoco
# Avoid using pyenv in travis, since it adds ~7 minutes to turnaround time
if [ "$TRAVIS_OS_NAME" == "osx" ]
then
# https://github.com/travis-ci/travis-ci/issues/9640
sudo softwareupdate --install "Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.4"
brew update
brew install open-mpi
brew install gcc
brew link --overwrite gcc
curl $MUJOCO_FOR_OSX | tar xz -C $HOME/.mujoco/
elif [ "$TRAVIS_OS_NAME" == "linux" ]
then
# Because this is flaky, try several times
set +e
COUNT=0
while [ $COUNT -lt 5 ]; do
sudo curl -o /usr/local/bin/patchelf https://s3-us-west-2.amazonaws.com/openai-sci-artifacts/manual-builds/patchelf_0.9_amd64.elf
if [ $? -eq 0 ];then
break
fi
let COUNT=COUNT+1
done
if [ $COUNT -ge 5 ]; then
echo "Failed to download patchelf"
exit 1
fi
set -e
sudo chmod +x /usr/local/bin/patchelf
curl $MUJOCO_FOR_LINUX | tar xz -C $HOME/.mujoco/
sudo apt-get update
sudo apt-get install -y openmpi-bin libopenmpi-dev libosmesa6-dev libglew-dev
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化