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
c5adba1
commit a245d77
Showing
2 changed files
with
40 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,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
set -x | ||
|
||
output_id="$1" | ||
output="test-assets/output_$output_id" | ||
rm -rf "$output" | ||
mkdir "$output" | ||
|
||
test_paths=( | ||
"/openedx/edx-platform" | ||
"/openedx/staticfiles" | ||
"/openedx/themes" | ||
) | ||
|
||
test_mode ( ) { | ||
mode="$1" | ||
mkdir "$output/$mode" | ||
for path in "${test_paths[@]}" ; do | ||
outpath="$output/${mode}${path}" | ||
mkdir -p "$(dirname "$outpath")" | ||
tutor "$mode" copyfrom lms "$path" "$outpath" | ||
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 | ||
|