forked from appsembler/xblock-video
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from raccoongang/dev
- Default transcripts. Allow to fetch transcripts from the video platform and store them into XBlock. - Brightcove auto-quality and content encryption. - Various bugfixes and improvements
- Loading branch information
Showing
47 changed files
with
3,789 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"directory": "video_xblock/static/bower_components", | ||
"scripts": { | ||
"preinstall": "", | ||
"postinstall": "", | ||
"preuninstall": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Serves for configuration of CodeClimate (automated code review for test coverage, complexity, duplication, etc.) | ||
engines: | ||
csslint: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
- python | ||
exclude_fingerprints: | ||
- ffaa02171edd2e7b1184b6eacdbed97f | ||
eslint: | ||
# Disabled since CodeClimate doesn't yet support eslint-config-edx plugin | ||
enabled: false | ||
channel: "eslint-3" | ||
fixme: | ||
enabled: true | ||
radon: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.css" | ||
- "**.js" | ||
- "**.py" | ||
exclude_paths: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repo_token: St0myP2WKubt2SrFuyQDZI7Y1gsxDIiiX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,6 @@ trim_trailing_whitespace = true | |
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
video_xblock/static/js/player_state.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"extends": "eslint-config-edx", | ||
"globals": { | ||
"videojs": true, | ||
"domReady": true | ||
}, | ||
"rules": { | ||
"no-underscore-dangle": [ | ||
"error", {"allow": [ | ||
// VideoJS components' attributes | ||
"childNameIndex_", "el_", "kind_", "labelEl_", "options_", "player_", "tracks_" | ||
]} | ||
], | ||
"require-jsdoc": ["error", { | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true | ||
} | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "2.7.10" | ||
- "2.7.13" | ||
|
||
cache: | ||
pip: true | ||
directories: | ||
- node_modules # NPM packages | ||
|
||
before_install: | ||
# Install latest stable NodeJS version. Required for eslint. | ||
- nvm install stable | ||
# Install binary package for lxml to speed up build | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y python-lxml | ||
|
||
before_script: | ||
- make deps-test | ||
# Install eslint, eslint-config-edx and their dependencies | ||
- make tools | ||
|
||
script: | ||
- "pylint video_xblock" | ||
- make quality-py | ||
- make quality-js | ||
- make test-py | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.PHONY=all,quality,test | ||
|
||
all: quality test | ||
|
||
clean: | ||
-rm -rf node_modules/ | ||
|
||
test: test-py | ||
|
||
test-py: | ||
nosetests video_xblock --with-coverage --cover-package=video_xblock | ||
|
||
quality: quality-py quality-js | ||
|
||
quality-py: | ||
pep8 . --format=pylint --max-line-length=120 | ||
pylint -f colorized video_xblock | ||
|
||
quality-js: | ||
eslint video_xblock/static/js/ | ||
|
||
deps: | ||
pip install -r requirements.txt | ||
bower install | ||
|
||
deps-test: | ||
pip install -r test_requirements.txt | ||
|
||
tools: | ||
npm install "eslint@^2.12.0" eslint-config-edx "eslint-plugin-dollar-sign@0.0.5" "eslint-plugin-import@^1.9.2" | ||
|
||
package: | ||
echo "Here be static dependencies packaging" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
git+https://github.com/edx/XBlock.git#egg=XBlock==0.4.12 | ||
git+https://github.com/edx/xblock-utils.git#egg=xblock-utils==1.0.2 | ||
django==1.8.12 | ||
edx-lint==0.5.1 | ||
git+https://github.com/edx/XBlock.git@xblock-0.4.12#egg=XBlock==0.4.12 | ||
git+https://github.com/edx/xblock-utils.git@v1.0.2#egg=xblock-utils==1.0.2 | ||
pycaption<1.0 # The latest Python 2.7 compatible version | ||
pylint==1.4.5 | ||
requests==2.9.1 | ||
babelfish==0.5.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Auto-transcripts upload is dependent on xmodule.contentstore | ||
git+https://github.com/edx/edx-platform.git@open-release/eucalyptus.3#egg=xmodule==0.1.1&subdirectory=common/lib/xmodule/ | ||
PyContracts==1.7.1 # xmodule dependency | ||
sortedcontainers==0.9.2 # xmodule dependency | ||
Pillow==3.1.1 # xmodule dependency | ||
|
||
coveralls==1.1 | ||
django==1.8.12 | ||
edx-lint==0.5.2 | ||
mako==1.0.2 | ||
pylint==1.6.5 | ||
pep8 |
Oops, something went wrong.