Revert "Modify build config"

This reverts commit 05617a3b56a905ceea16713d6cc5eb489631b325.
This commit is contained in:
Mike Koch 2017-11-04 22:17:47 -04:00
parent ca728839ac
commit d62370b069
No known key found for this signature in database
GPG Key ID: 9BA5D7F8391455ED
3 changed files with 20 additions and 16 deletions

View File

@ -73,10 +73,12 @@ package:
when: manual
stage: package
script:
- apt-get update
- apt-get install zip unzip
- cd api
- composer install --no-dev
- cd ../ci
- bash build_release.sh
- bash build_zip.sh
artifacts:
paths:
- release/
- release.zip

View File

@ -1,14 +0,0 @@
#!/bin/bash
cd ../
mkdir release
TARGETDIR=release;for file in *;do test "$file" != "$TARGETDIR" && cp -r "$file" "$TARGETDIR/";done
# Remove files that we don't want to bundle
cd release
rm -rf ci
rm -rf .git
rm apidoc.json
rm CONTRIBUTING.md
cd ../

16
ci/build_zip.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
cd ../
mkdir $VERSION_NUMBER
TARGETDIR=$VERSION_NUMBER;for file in *;do test "$file" != "$TARGETDIR" && cp -r "$file" "$TARGETDIR/";done
# Remove files that we don't want to bundle
cd $VERSION_NUMBER
rm -rf ci
rm -rf .git
rm apidoc.json
rm CONTRIBUTING.md
cd ../
zip -r release.zip $VERSION_NUMBER
rm -rf $VERSION_NUMBER