Merge branch 'add-version-to-latest-zip' into 'v1.1.x'
Add version to latest zip See merge request framasoft/framadate/framadate!497
This commit is contained in:
commit
f877e4a27f
@ -16,20 +16,6 @@ test:
|
|||||||
paths:
|
paths:
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
||||||
check-trad:
|
|
||||||
stage: test
|
|
||||||
allow_failure: true
|
|
||||||
script:
|
|
||||||
- if [ -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then echo "*** Unable to check if translations need to be pulled, exiting ***"; exit 1; fi
|
|
||||||
- export ORIG=$(git diff-files --shortstat)
|
|
||||||
- if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then mkdir -p ${HOME}/.config; echo -e "${ZANATA_CONFIG_FRAMABOT}" > ${HOME}/.config/zanata.ini; fi
|
|
||||||
- if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then make push-locales; fi
|
|
||||||
- git status > /dev/null 2>&1
|
|
||||||
- export CHANGES=$(git diff-files --shortstat)
|
|
||||||
- if [[ $CHANGES != $ORIG ]]; then echo "*** There is changes in locales ***"; echo "*** You need to do `make pull-locales` in your repo ***"; exit 1; fi
|
|
||||||
only:
|
|
||||||
- develop
|
|
||||||
|
|
||||||
# Create artifacts on master
|
# Create artifacts on master
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
@ -40,6 +26,7 @@ pages:
|
|||||||
- composer dump-autoload --optimize --no-dev --classmap-authoritative
|
- composer dump-autoload --optimize --no-dev --classmap-authoritative
|
||||||
- mkdir framadate
|
- mkdir framadate
|
||||||
- mv `ls -A | grep -v framadate` ./framadate
|
- mv `ls -A | grep -v framadate` ./framadate
|
||||||
|
- echo $latesttag > framadate/VERSION
|
||||||
- find framadate/ -type d -exec chmod 750 {} \;
|
- find framadate/ -type d -exec chmod 750 {} \;
|
||||||
- find framadate/ -type f -exec chmod 640 {} \;
|
- find framadate/ -type f -exec chmod 640 {} \;
|
||||||
- rm -rf framadate/.git
|
- rm -rf framadate/.git
|
||||||
|
2
po/.gitignore
vendored
2
po/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
*
|
|
||||||
!.gitignore
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
FILE=$1
|
|
||||||
if [[ ! -e locale/$FILE.json ]]
|
|
||||||
then
|
|
||||||
echo "locale/$FILE.json does not exist. Exiting."
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
LOCALE=$(echo $FILE | sed -e "s@_@-@g")
|
|
||||||
json2po -i locale/$FILE.json -t locale/en.json -o po/$FILE.po
|
|
||||||
zanata-cli -q -B push --push-type trans -l $LOCALE
|
|
||||||
fi
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<config xmlns="http://zanata.org/namespace/config/">
|
|
||||||
<url>https://trad.framasoft.org/zanata/</url>
|
|
||||||
<project>framadate</project>
|
|
||||||
<project-version>master</project-version>
|
|
||||||
<project-type>gettext</project-type>
|
|
||||||
<src-dir>po</src-dir>
|
|
||||||
<trans-dir>po</trans-dir>
|
|
||||||
</config>
|
|
Loading…
Reference in New Issue
Block a user