瀏覽代碼

Add build to Travis CI configuration.

tags/2.5.0
Matthew Petroff 5 年之前
父節點
當前提交
e473b6f738
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. +2
    -0
      .travis.yml
  2. +1
    -0
      utils/build/build.py

+ 2
- 0
.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

+ 1
- 0
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:


Loading…
取消
儲存