forked from overhangio/tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ab841f
commit ac7b55f
Showing
2 changed files
with
37 additions
and
0 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,4 @@ | ||
* | ||
|
||
!/run.sh | ||
!/.gitignore |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
set -x | ||
|
||
output="test-assets/output_$(date +"%Y-%m-%d_%H-%M-%S")" | ||
mkdir "$output" | ||
|
||
test_paths=( | ||
"/openedx/edx-platform" | ||
"/openedx/staticfiles" | ||
"/openedx/static" | ||
"/openedx/themes" | ||
) | ||
|
||
test_mode ( ) { | ||
mode="$1" | ||
mkdir "$output/$mode" | ||
for path in "${test_paths[@]}" ; do | ||
tutor "$mode" copyfrom lms "$path" "$output/${mode}${path}" | ||
done | ||
} | ||
|
||
|
||
tutor config save \ | ||
--set EDX_PLATFORM_REPOSITORY=https://github.com/kdmccormick/edx-platform \ | ||
--set EDX_PLATFORM_VERSION=kdmccormick/assets-build-sh | ||
tutor images build openedx | ||
tutor dev dc build lms | ||
test_mode local | ||
test_mode dev | ||
#test_mode k8s # TODO | ||
|