2019-08-13 00:31:05 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: weblinks-codeception-tests
|
2021-06-27 11:46:07 +00:00
|
|
|
image: joomlaprojects/docker-images:systemtests
|
2019-08-13 00:31:05 +00:00
|
|
|
commands:
|
2021-07-19 12:32:15 +00:00
|
|
|
- pwd
|
2019-08-13 00:31:05 +00:00
|
|
|
- composer install
|
|
|
|
- chmod a+x .drone/build.sh
|
|
|
|
- ./.drone/build.sh
|
|
|
|
- apache2ctl start
|
|
|
|
- service mysql start
|
|
|
|
- cd /tests/www
|
|
|
|
- export DISPLAY=:0
|
|
|
|
- Xvfb -screen 0 1024x768x24 -ac +extension GLX +render -noreset > /dev/null 2>&1 &
|
|
|
|
- sleep 3
|
|
|
|
- fluxbox > /dev/null 2>&1 &
|
|
|
|
- vendor/bin/robo run:tests
|
|
|
|
|
2021-07-19 12:19:14 +00:00
|
|
|
- name: artifacts-codeception-tests
|
|
|
|
image: cschlosser/drone-ftps
|
2021-07-19 12:19:56 +00:00
|
|
|
depends_on: [ weblinks-codeception-tests ]
|
2021-07-19 12:19:14 +00:00
|
|
|
environment:
|
|
|
|
FTP_USERNAME:
|
|
|
|
from_secret: ftpusername
|
|
|
|
FTP_PASSWORD:
|
|
|
|
from_secret: ftppassword
|
2021-07-19 12:21:40 +00:00
|
|
|
PLUGIN_HOSTNAME: artifacts.joomla.org:21
|
2021-07-19 13:15:37 +00:00
|
|
|
PLUGIN_SRC_DIR: /tests/_output
|
2021-07-19 13:23:16 +00:00
|
|
|
PLUGIN_DEST_DIR: /
|
2021-07-19 12:19:14 +00:00
|
|
|
PLUGIN_SECURE: false
|
|
|
|
PLUGIN_EXCLUDE: ^\.git/$
|
|
|
|
commands:
|
2021-07-19 12:33:35 +00:00
|
|
|
- ls -l /drone/src/tests/_output
|
2021-07-19 13:21:37 +00:00
|
|
|
- export PLUGIN_DEST_DIR=$PLUGIN_DEST_DIR/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST/system-tests/$DRONE_BUILD_NUMBER
|
2021-07-19 13:23:16 +00:00
|
|
|
- echo https://artifacts.joomla.org/drone$PLUGIN_DEST_DIR
|
2021-07-19 12:19:14 +00:00
|
|
|
- /bin/upload.sh
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
|
2019-08-13 00:31:05 +00:00
|
|
|
volumes:
|
|
|
|
- name: weblinks_cache
|
|
|
|
host:
|
|
|
|
path: /tmp/weblinks_cache
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: signature
|
2021-07-19 13:23:16 +00:00
|
|
|
hmac: bcc028d5d9601f1f3355862f17dd2434ba86f47634f0737877db534e49c8265b
|
2019-08-13 00:31:05 +00:00
|
|
|
|
|
|
|
...
|