Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-xapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quentin Pimont
moodle-xapi
Commits
c3431c43
Commit
c3431c43
authored
7 years ago
by
Ryan Smith
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #148 from xAPI-vle/auto-release
Fixes zip file.
parents
06d9a4af
c259a3b3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
scripts/generateZipFile.sh
+15
-19
15 additions, 19 deletions
scripts/generateZipFile.sh
xapi.zip
+0
-0
0 additions, 0 deletions
xapi.zip
with
17 additions
and
19 deletions
.gitignore
+
2
−
0
View file @
c3431c43
...
...
@@ -7,3 +7,5 @@
/node_modules
/package-lock.json
/vendor
/xapi
/xapi.zip
This diff is collapsed.
Click to expand it.
scripts/generateZipFile.sh
+
15
−
19
View file @
c3431c43
#!/usr/bin/env sh
# Creates a folder to zip.
rm
-f
xapi.zip
php
-r
"readfile('https://getcomposer.org/installer');"
| php
php composer.phar
install
--no-interaction
--no-dev
cp
-r
.
../moodle_logstore_build
# Installs composer production dependencies.
rm
-rf
vendor
composer
install
--no-interaction
--no-dev
#
Removes unused files and folders
.
find ../moodle_logstore_build
-type
d
-name
'tests'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
d
-name
'docs'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
d
-name
'.git'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'.gitignore'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'composer.*'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'phpunit.*'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'*.md'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'node_modules'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'package-lock.json'
| xargs
rm
-rf
find ../moodle_logstore_build
-type
f
-name
'package.json'
| xargs
rm
-rf
#
Creates folder to zip
.
rm
-rf
xapi
mkdir
-p
./xapi/classes
&&
cp
-r
./classes ./xapi
mkdir
-p
./xapi/db
&&
cp
-r
./db ./xapi
mkdir
-p
./xapi/lang
&&
cp
-r
./lang ./xapi
mkdir
-p
./xapi/lib
&&
cp
-r
./lib ./xapi
mkdir
-p
./xapi/vendor
&&
cp
-r
./vendor ./xapi
cp
./LICENSE ./xapi
cp
./README.md ./xapi
cp
./settings.php ./xapi
cp
./version.php ./xapi
# Creates the zip file.
mv
../moodle_logstore_build xapi
zip
-r
xapi.zip xapi
-x
"xapi/.git/**/*"
rm
-rf
xapi
zip
-r
xapi.zip xapi
This diff is collapsed.
Click to expand it.
xapi.zip
deleted
100644 → 0
+
0
−
0
View file @
06d9a4af
File deleted
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment