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 branch 'dev' into bug/settings-page-studio
- Loading branch information
Showing
7 changed files
with
38 additions
and
27 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 |
---|---|---|
|
@@ -3,19 +3,22 @@ python: | |
- "2.7.10" | ||
- "2.7.13" | ||
|
||
cache: pip | ||
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 | ||
- pip install -r test_requirements.txt | ||
|
||
before_script: | ||
- make deps-test | ||
# Install eslint, eslint-config-edx and their dependencies | ||
- npm install "eslint@^2.12.0" eslint-config-edx "[email protected]" "eslint-plugin-import@^1.9.2" | ||
- make tools | ||
|
||
script: | ||
- make quality-py | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
|
||
all: quality test | ||
|
||
clean: | ||
-rm -rf node_modules/ | ||
|
||
test: test-py | ||
|
||
test-py: | ||
|
@@ -16,5 +19,15 @@ quality-py: | |
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 "[email protected]" "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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,24 @@ | |
[![Coverage Status](https://coveralls.io/repos/github/raccoongang/xblock-video/badge.svg?branch=dev)](https://coveralls.io/github/raccoongang/xblock-video?branch=dev) | ||
|
||
# xblock-video | ||
|
||
XBlock to embed videos hosted on different video platform into your courses. | ||
|
||
## Installation | ||
|
||
```bash | ||
```shell | ||
sudo -sHu edxapp | ||
source ~/edxapp_env | ||
# Clone and install xblock | ||
git clone https://github.com/raccoongang/xblock-video.git | ||
cd xblock-video | ||
pip install -e . | ||
# Install external JavaScript dependencies | ||
cd video_xblock/static | ||
bower install | ||
# Install Python and JavaScript dependencies | ||
make deps | ||
``` | ||
|
||
## Enabling in Studio | ||
|
||
You can enable the Wistia xblock in studio through the advanced | ||
settings: | ||
|
||
|
@@ -38,15 +39,14 @@ TODO | |
|
||
Install dependencies and development tools: | ||
```shell | ||
> pip install -r requirements.txt | ||
> pip install -r test_requirements.txt | ||
> npm install "eslint@^2.12.0" eslint-config-edx "[email protected]" "eslint-plugin-import@^1.9.2" | ||
> make deps deps-test tools | ||
``` | ||
|
||
Run quality checks: | ||
```shell | ||
> make quality | ||
``` | ||
|
||
Run tests: | ||
```shell | ||
> make test | ||
|
@@ -57,16 +57,3 @@ Run tests: | |
The code in this repository is licensed under the GPL v3 licence unless otherwise noted. | ||
|
||
Please see `LICENSE` file for details. | ||
|
||
|
||
## Tests | ||
|
||
Assuming revealjs is installed as above, you can run python tests like so: | ||
|
||
```nosetests video_xblock``` | ||
|
||
To get statement coverage: | ||
|
||
```nosetests video_xblock --with-coverage --coverage-package=video_xblock``` | ||
|
||
|
File renamed without changes.
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,5 +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 | ||
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 | ||
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