From 309cecac8f9461d9b1c76f2b49a6f4733c8278d9 Mon Sep 17 00:00:00 2001 From: Ryan Smith <0ryansmith1994@gmail.com> Date: Fri, 6 Oct 2017 17:42:21 +0100 Subject: [PATCH] ci(travis): Removes Git pushing from build script and deletes unnecessary files. --- build.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 36e0041..4024a31 100755 --- a/build.sh +++ b/build.sh @@ -14,13 +14,11 @@ 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 the zip file. mv ../moodle_logstore_build xapi zip -r xapi.zip xapi -x "xapi/.git/**/*" rm -rf xapi - -# Updates Github. -git add xapi.zip -git commit -m "Builds zip file." -git push -- GitLab