diff --git a/.travis.yml b/.travis.yml index 05f9b35..b2f9477 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,13 @@ matrix: include: - language: python python: - - 2.6 + - 2.7 dist: trusty install: - "pip install -r requirements.txt" script: - cd src - - python __main__.py + - python __main__.py --build - cd .. notifications: email: @@ -21,7 +21,7 @@ matrix: - "pip install -r requirements.txt" script: - cd src - - python __main__.py + - python __main__.py --build - cd .. notifications: email: @@ -39,7 +39,7 @@ matrix: - "pip install pyinstaller" script: - cd src - - python __main__.py + - python __main__.py --build - pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl_linux" - cd .. notifications: @@ -76,7 +76,7 @@ matrix: - "pip install pyinstaller" script: - cd src - - python __main__.py + - python __main__.py --build - pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl.exe" - cd .. notifications: @@ -110,7 +110,7 @@ matrix: - "pip install pyinstaller" script: - cd src - - python3 __main__.py + - python3 __main__.py --build - pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl_osx" - export newMoviesVersion=`cat version.txt` - cd .. diff --git a/src/movies.py b/src/movies.py index d6b67e1..c9feac5 100644 --- a/src/movies.py +++ b/src/movies.py @@ -15,7 +15,11 @@ from bs4 import BeautifulSoup class Movies: def __init__(self, argv, cwd): - print("Main") + if len(argv) > 0: + print("Arguments: {0}".format(argv)) + if argv[0] == '--build': + print("Got the build working check. Exiting.") + sys.exit(0) self.queue = [] related_episodes = [] url = None