Skip to content

Commit

Permalink
Back to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
abagshaw committed Feb 26, 2018
1 parent 1a59538 commit e37785b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_darkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
import sys
import pytest

#NOTE: This file is designed to be run in the CircleCI environment. If you want to run it locally set the environment variable CIRCLE_WORKING_DIRECTORY to the base
#NOTE: This file is designed to be run in the TravisCI environment. If you want to run it locally set the environment variable TRAVIS_BUILD_DIR to the base
# directory of the cloned darkflow repository. WARNING: This file delete images from sample_img/ that won't be used for testing (so don't run it
# locally if you don't want this happening!)

#Settings
buildPath = os.path.expanduser(os.environ.get("CIRCLE_WORKING_DIRECTORY"))
buildPath = os.environ.get("TRAVIS_BUILD_DIR")

if buildPath is None:
print()
print("CIRCLE_WORKING_DIRECTORY environment variable was not found - is this running on CircleCI?")
print("If you want to test this locally, set CIRCLE_WORKING_DIRECTORY to the base directory of the cloned darkflow repository.")
print("TRAVIS_BUILD_DIR environment variable was not found - is this running on TravisCI?")
print("If you want to test this locally, set TRAVIS_BUILD_DIR to the base directory of the cloned darkflow repository.")
exit()

testImg = {"path": os.path.join(buildPath, "sample_img", "sample_person.jpg"), "width": 640, "height": 424,
Expand Down

0 comments on commit e37785b

Please sign in to comment.