Skip to content

Commit

Permalink
ci: deploy Spanish course from external repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Aug 22, 2021
1 parent f0b87a8 commit 9d17172
Show file tree
Hide file tree
Showing 39 changed files with 16 additions and 17,327 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ apps/librelingo_tools/dist
report.*.*.json
/coverage/
apps/docs/build/
/courses/
3 changes: 2 additions & 1 deletion apps/web/cypress/integration/loginForm.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ Feature: Login form
And I introduce "baz" as "password"
Given my credentials are correct
When I click the "Log in" button
And I open "/course/test"
Then I read "Log out"
And I am on "/course/spanish-from-english/"
And I am on "/"
4 changes: 3 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"cy:open": "cypress open",
"dev": "sapper dev --no-hot",
"build": "sapper build",
"export": "sapper export",
"export": "web installAllExternalCourses & sapper export",
"start": "node __sapper__/build",
"jest": "jest src",
"types": "sapper build && tsc && svelte-check --treshold error",
"installCourse": "./scripts/installExternalCourse.sh",
"installAllExternalCourses": "./scripts/installExternalCourses.sh",
"fetchPhotos": "./scripts/fetchPhotos.sh",
"fetchAudios": "./scripts/fetchAudios.sh",
"updateAllCourseData": "./scripts/updateAllCourseData.sh",
Expand Down
5 changes: 5 additions & 0 deletions apps/web/scripts/installExternalCourse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

wget "https://github.com/$1/archive/refs/heads/main.zip" -O temp.zip
unzip temp.zip -d ../../courses/$2
rm temp.zip
3 changes: 3 additions & 0 deletions apps/web/scripts/installExternalCourses.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

yarn installCourse kantord/LibreLingo-ES-from-EN spanish-from-english
Loading

1 comment on commit 9d17172

@vercel
Copy link

@vercel vercel bot commented on 9d17172 Aug 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.