forked from facebookresearch/habitat-sim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from facebookresearch/master
Pull from fb master
- Loading branch information
Showing
60 changed files
with
2,292 additions
and
1,614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
version: 2 | ||
gpu: &gpu | ||
machine: | ||
image: ubuntu-1604:201903-01 | ||
resource_class: gpu.small | ||
environment: | ||
FPS_THRESHOLD: 900 | ||
|
||
|
||
jobs: | ||
python_lint: | ||
docker: | ||
- image: circleci/python:3.6 | ||
steps: | ||
- checkout | ||
- run: | ||
name: setup | ||
command: | | ||
sudo pip install -U black "isort[pyproject]" numpy pytest sphinx | ||
sudo pip install -r requirements.txt | ||
- run: | ||
name: run black | ||
command: | | ||
black --version | ||
black habitat_sim/. examples/. tests/. setup.py --diff | ||
black habitat_sim/. examples/. tests/. setup.py --check | ||
- run: | ||
name: run isort | ||
command: | | ||
isort --version | ||
isort -rc habitat_sim/. examples/. tests/. setup.py --diff | ||
isort -rc habitat_sim/. examples/. tests/. setup.py --check-only | ||
cpp_lint: | ||
docker: | ||
- image: circleci/buildpack-deps:disco | ||
steps: | ||
- checkout | ||
- run: | ||
name: setup | ||
command: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y clang-format-8 | ||
sudo ln -s /usr/bin/clang-format-8 /usr/bin/clang-format | ||
clang-format --version | ||
- run: | ||
name: run clang-format | ||
command: | | ||
find . -not -path "*/\.*" -not -path "*/deps/*" -not -path "*/obsolete/*" -not -path "*/build/*" | grep -E ".*\.cpp$|.*\.h$|.*\.cu$|.*\.hpp$" | xargs -I {} bash -c "diff -u <(cat {}) <(clang-format -style=file {})" | ||
build_install_test_ubuntu: | ||
<<: *gpu | ||
steps: | ||
- checkout: | ||
path: ./habitat-sim | ||
- run: | ||
name: Install cmake | ||
no_output_timeout: 1h | ||
command: | | ||
wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4-Linux-x86_64.sh | ||
sudo mkdir /opt/cmake | ||
sudo sh ./cmake-3.13.4-Linux-x86_64.sh --prefix=/opt/cmake --skip-license | ||
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake | ||
- run: | ||
name: Install conda and dependencies | ||
no_output_timeout: 1h | ||
command: | | ||
curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
chmod +x ~/miniconda.sh | ||
~/miniconda.sh -b -p $HOME/miniconda | ||
rm ~/miniconda.sh | ||
$HOME/miniconda/bin/conda install -y numpy pyyaml scipy ipython mkl mkl-include | ||
export PATH=$HOME/miniconda/bin:$PATH | ||
conda create -y -n habitat python=3.6 | ||
. activate habitat | ||
conda install -y -c conda-forge ninja numpy pyyaml scipy ipython mkl mkl-include pytest | ||
sudo apt-get update || true | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
curl \ | ||
vim \ | ||
ca-certificates \ | ||
libjpeg-dev \ | ||
libglm-dev \ | ||
libegl1-mesa-dev \ | ||
xorg-dev \ | ||
freeglut3-dev \ | ||
pkg-config \ | ||
wget \ | ||
zip \ | ||
unzip || true | ||
- run: | ||
name: Install cuda | ||
no_output_timeout: 1h | ||
command: | | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.44-1_amd64.deb | ||
sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb | ||
sudo apt-get update || true | ||
sudo apt-get --yes --force-yes install cuda | ||
nvidia-smi | ||
- run: | ||
name: Download test data | ||
command: | | ||
cd habitat-sim | ||
wget http://dl.fbaipublicfiles.com/habitat/habitat-test-scenes.zip | ||
unzip habitat-test-scenes.zip | ||
rm habitat-test-scenes.zip | ||
- run: | ||
name: Build, install habitat-sim and run benchmark | ||
no_output_timeout: 1h | ||
command: | | ||
export PATH=$HOME/miniconda/bin:$PATH | ||
. activate habitat; cd habitat-sim | ||
pip install -r requirements.txt | ||
python setup.py install --headless | ||
python examples/example.py --scene data/scene_datasets/habitat-test-scenes/van-gogh-room.glb --silent --test_fps_regression $FPS_THRESHOLD | ||
- run: | ||
name: Run sim tests | ||
command: | | ||
cd habitat-sim | ||
export PATH=$HOME/miniconda/bin:$PATH | ||
. activate habitat | ||
pip install nbval | ||
export PYTHONPATH=$PYTHONPATH:$(pwd) | ||
./build.sh --headless | ||
HEADLESS=True pip install -e . | ||
pytest --ignore notebooks/habitat-sim-demo.ipynb | ||
- run: | ||
name: Run api tests | ||
command: | | ||
git clone https://github.com/facebookresearch/habitat-api.git | ||
export PYTHONPATH=$PYTHONPATH:$(pwd)/habitat-sim | ||
export PATH=$HOME/miniconda/bin:$PATH | ||
. activate habitat; cd habitat-api | ||
ln -s ../habitat-sim/data data | ||
conda install -c conda-forge opencv -y | ||
conda install -y pytorch torchvision cudatoolkit=10.0 -c pytorch | ||
pip install -r requirements.txt | ||
python setup.py test | ||
workflows: | ||
version: 2 | ||
build_and_install: | ||
jobs: | ||
- python_lint | ||
- cpp_lint | ||
- build_install_test_ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,7 +165,7 @@ run_example | |
|
||
tests/17DRP5sb8fy | ||
data/ | ||
habitat-test-scenes.zip | ||
*.zip | ||
habitat_sim/_ext | ||
|
||
.setuppy_args_cache.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.