Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build --verbose_failures
test --keep_going
test --build_tests_only
test --test_output=errors
test --test_verbose_timeout_warnings
43 changes: 43 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[flake8]
inline-quotes = double
max-line-length = 88
max-complexity = 10
exclude = .git,
.tox,
.pytest_cache,
__pycache__
ignore = C901,
E101,
E111,
E114,
E121,
E125,
E126,
E129,
E221,
E265,
E271,
E305,
E306,
E501,
E502,
E731,
E741,
F401,
F812,
W191,
W503,
W504,
42 changes: 33 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,43 @@
# See the License for the specific language governing permissions and
# limitations under the License.
language: python
python:
- "2.7"
- "3.5"
- "3.6"
install:
- pip install -U pip

before_install:
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.26.1/bazel-0.26.1-installer-linux-x86_64.sh"
- chmod +x install.sh
- ./install.sh --user
- rm -f install.sh
- sudo apt-get -y install libopenexr-dev
- sudo apt-get -y install libgles2-mesa-dev
- sudo apt-get -y install libc-ares-dev
- pip install -U absl-py
- pip install -U scipy
- pip install -U OpenEXR
- pip install -U flake8
- pip install -U python-coveralls
- pip install -U tox-travis
- pip install -U tox-pip-version

jobs:
include:
- os: linux
python: 2.7
install:
- pip install -U tensorflow
- os: linux
python: 3.6
install:
- pip install -U tensorflow
- os: linux
python: 3.6
install:
- pip install -U tf-nightly-2.0-preview

script:
- tox
- bazel test //tensorflow_graphics/...
- flake8 --config=.flake8 ./tensorflow_graphics/

after_success:
- coveralls

notifications:
email:
recipients:
Expand Down
84 changes: 0 additions & 84 deletions tox.ini

This file was deleted.