diff --git a/.travis.yml b/.travis.yml index 4d9de27..328155d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,7 @@ before_install: - sudo pip3 install selenium jobs: include: + - stage: build + script: python3 utils/build/build.py - stage: test script: python3 tests/run_tests.py diff --git a/utils/build/build.py b/utils/build/build.py index e725f7f..64cc64c 100755 --- a/utils/build/build.py +++ b/utils/build/build.py @@ -143,6 +143,7 @@ def build(files, css, html, filename, release=False): output(addHeaderJS(js, version), folder + filename) def main(): + os.chdir(os.path.dirname(os.path.abspath(__file__))) # cd to script dir if (len(sys.argv) > 1 and sys.argv[1] == 'release'): build(JS, CSS, HTML, 'pannellum', True) else: