Modify build config

master
Mike Koch 6 years ago
parent b77e2e6459
commit 05617a3b56
No known key found for this signature in database
GPG Key ID: 9BA5D7F8391455ED

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

@ -0,0 +1,14 @@
#!/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 ../

@ -1,16 +0,0 @@
#!/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
Loading…
Cancel
Save