-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace all make commands by a single "tutor" binary. Environment and data are all moved to ~/.tutor/local/share/tutor. We take the opportunity to add a web UI and revamp the documentation. This is a complete rewrite. Close #121. Close #147.
- Loading branch information
Showing
131 changed files
with
2,585 additions
and
1,457 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
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,7 @@ | ||
.*.swp | ||
!.gitignore | ||
/config.json | ||
/data*/ | ||
TODO | ||
|
||
/build/tutor | ||
/dist/ | ||
/tutor_openedx.egg-info/ |
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,11 +1,72 @@ | ||
language: minimal | ||
services: | ||
- docker | ||
language: python | ||
matrix: | ||
include: | ||
- os: linux | ||
# We need an older version of python in order to have compatibility with | ||
# older versions of libc | ||
dist: trusty | ||
python: 3.6 | ||
services: | ||
- docker | ||
env: | ||
BUILD_BINARY: "true" | ||
- os: linux | ||
dist: xenial | ||
python: 3.6 | ||
services: | ||
- docker | ||
env: | ||
BUILD_DOCKER: "true" | ||
- os: linux | ||
dist: xenial | ||
python: 3.6 | ||
services: | ||
- docker | ||
env: | ||
BUILD_PYPI: "true" | ||
- os: osx | ||
language: generic | ||
env: | ||
BUILD_BINARY: "true" | ||
script: | ||
- make travis | ||
- python3 --version | ||
- pip3 --version | ||
- pip3 install -U setuptools | ||
- pip3 install -r requirements/dev.txt | ||
- make bundle | ||
- ./dist/tutor config noninteractive | ||
- ./dist/tutor images env | ||
- ./dist/tutor local env | ||
|
||
before_deploy: | ||
- cp ./dist/tutor ./dist/tutor-$TRAVIS_OS_NAME | ||
|
||
deploy: | ||
provider: script | ||
script: cd build/ && docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && make push | ||
on: | ||
all_branches: true | ||
condition: $TRAVIS_BRANCH =~ ^master|release\/.*$ | ||
# Push tutor binary to github releases | ||
- provider: releases | ||
api_key: | ||
secure: ffrhGvgxHf3WVnKsKiJZTUoEf3+ZBtIydPHQoTDmHiYMyPnaO6RJWxq5PnoDRr47b1vnvbCE0lhNsGr3sgnruQSN3xHYfT4wz1F6Lz7Y5Jt7Uq1W0/UfSRlB3BwYcFpkUb5fSXLSku+QrV8OTk/yItlY9tppnvXA9h4CZjQqgJYHYc1DRKWQVYnVs/dCttUpiPV3eyIFeQoPKFsHwZXKcm9cVzom5r+lkjwpw3AIuAutPd71jyj/Va/By6B/43yAIqw3sA/thBeL76vqd8C4cMeWE00of1EWnH+sx6pKz32Fqe/o6dVop5PZPCiI+TVIDxR8oLevHtPTCfIwRDg60y23DdH3bMGSw1bAyjeWTnhRGcdYQJi1NKq3hJ0ldy0lOFlUiMkKPdQBtU7i0xIpoXTIhnro0YUUtjbh/QEtyRn8nbMVeenId42Bymah5P8srhE8S2z0x0mirIqNlM/tgLKEOJXdSL4sPKCMwRLcTUIc0fCiwLeHJnHIrMNEfnWsqO1odzv/PS5nLsdiGHBmC63d+xLNllzincIV1djyi5SEzMZxcqmjX1n/G3nKYVXhaIQE0wWQSHqNwLlKluY0kPXCNtU1TPr5SJHGnomQKizVaEsDrdAjylBL+rPwVCAv9z8FCtyOg7uMx2WdD0pvky2Iy4rbl2RBLUHmUZoAjPY= | ||
file: dist/tutor-$TRAVIS_OS_NAME | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
condition: $BUILD_BINARY = true | ||
|
||
# Push docker images to docker hub | ||
- provider: script | ||
script: ./dist/tutor images build all && \ | ||
./dist/tutor local databases && \ | ||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && \ | ||
./dist/tutor images push all | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
condition: $BUILD_DOCKER = true | ||
|
||
# Push to pypi | ||
- provider: script | ||
script: pip install twine && python setup.py sdist && twine upload dist/*.tar.gz | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
condition: $BUILD_PYPI = 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from tutor.cli import main | ||
main() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.