Browse Source

Add build to Travis CI configuration.

tags/2.5.0
Matthew Petroff 5 years ago
parent
commit
e473b6f738
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      .travis.yml
  2. +1
    -0
      utils/build/build.py

+ 2
- 0
.travis.yml View File

@@ -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

+ 1
- 0
utils/build/build.py View File

@@ -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:


Loading…
Cancel
Save