Modify build config
This commit is contained in:
parent
b77e2e6459
commit
05617a3b56
@ -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/
|
||||
|
14
ci/build_release.sh
Normal file
14
ci/build_release.sh
Normal file
@ -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…
x
Reference in New Issue
Block a user