4 name: Check messages.po
14 - name: clone friendica base
17 - git clone https://github.com/friendica/friendica.git .
18 - git checkout $DRONE_COMMIT_BRANCH
19 - name: clone friendica addon
22 - git clone $DRONE_REPO_LINK addon
24 - git checkout $DRONE_COMMIT_BRANCH
25 - git fetch origin $DRONE_COMMIT_REF
26 - git merge $DRONE_COMMIT_SHA
27 - name: Run Xgettext for addons
28 image: friendicaci/transifex
31 - name: Check update necessary
32 image: friendicaci/transifex
48 - name: Clone friendica base
51 - git clone https://github.com/friendica/friendica.git .
52 - git checkout $DRONE_COMMIT_BRANCH
53 - name: Clone friendica addon
56 - git clone $DRONE_REPO_LINK addon
58 - git checkout $DRONE_COMMIT_BRANCH
59 - git fetch origin $DRONE_COMMIT_REF
60 - git merge $DRONE_COMMIT_SHA
61 - name: Install dependencies
64 - ./bin/composer.phar run cs:install
65 - name: Run coding standards check
66 image: friendicaci/php-cs
69 - export CHANGED_FILES="$(git diff --name-status ${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")"
75 name: php-continous-package
79 - friendica/friendica-addons
87 node: releaser # This prevents executing this pipeline at other servers than drone.friendi.ca
93 - name: Clone friendica base
96 - git clone https://github.com/friendica/friendica.git .
97 - git checkout $DRONE_COMMIT_BRANCH
98 - name: Clone friendica addon
101 - git clone $DRONE_REPO_LINK addon
103 - git checkout $DRONE_COMMIT_BRANCH
104 - git fetch origin $DRONE_COMMIT_REF
105 - git merge $DRONE_COMMIT_SHA
106 - name: Create artifacts
110 - apt-get install bzip2
111 - export VERSION="$(cat VERSION)"
112 - export RELEASE="friendica-addons-$VERSION"
113 - export ARTIFACT="$RELEASE.tar.gz"
115 - # Create artifact for friendica-addons
119 --exclude='.editorconfig'
120 --exclude='.gitattributes'
121 --exclude='.gitignore'
122 --exclude='.drone.yml'
123 --exclude='**/*/messages.po'
124 -cvjf ./build/$ARTIFACT --transform "s,^addon,$RELEASE," addon/
125 - # calculate SHA256 checksum
126 - sha256sum ./build/$ARTIFACT > ./build/$ARTIFACT.sha256
128 - name: Upload artifacts
132 from_secret: sftp_host
134 from_secret: sftp_user
141 - apk add lftp openssh openssl
143 - chmod 400 drone.key
144 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
147 set net:max-retries 2;
148 set net:reconnect-interval-base 5;
149 set sftp:auto-confirm true;
150 set sftp:connect-program 'ssh -q -a -x -i drone.key';
151 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
160 path: /tmp/drone-cache
164 name: php-release-package
168 - friendica/friendica-addons
175 node: releaser # This prevents executing this pipeline at other servers than drone.friendi.ca
181 - name: Clone friendica base
184 - git clone https://github.com/friendica/friendica.git .
185 - git checkout $DRONE_COMMIT_BRANCH
186 - name: Clone friendica addon
189 - git clone $DRONE_REPO_LINK addon
191 - git checkout $DRONE_COMMIT_BRANCH
192 - git fetch origin $DRONE_COMMIT_REF
193 - git merge $DRONE_COMMIT_SHA
194 - name: Create artifacts
198 - apt-get install bzip2
199 - export VERSION="$(cat VERSION)"
200 - export RELEASE="friendica-addons-$VERSION"
201 - export ARTIFACT="$RELEASE.tar.gz"
203 - # Create artifact for friendica-addons
207 --exclude='.editorconfig'
208 --exclude='.gitattributes'
209 --exclude='.gitignore'
210 --exclude='.drone.yml'
211 --exclude='**/*/messages.po'
212 -cvjf ./build/$ARTIFACT --transform "s,^addon,$RELEASE," addon/
213 - # calculate SHA256 checksum
214 - sha256sum ./build/$ARTIFACT > ./build/$ARTIFACT.sha256
216 - name: Upload artifacts
220 from_secret: sftp_host
222 from_secret: sftp_user
229 - apk add lftp openssh openssl
231 - chmod 400 drone.key
232 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
235 set net:max-retries 2;
236 set net:reconnect-interval-base 5;
237 set sftp:auto-confirm true;
238 set sftp:connect-program 'ssh -q -a -x -i drone.key';
239 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
248 path: /tmp/drone-cache