forked from ubccr/xdmod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
81 lines (81 loc) · 3 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: none
env:
global:
- COMPOSER_ALLOW_SUPERUSER=1
- XDMOD_REALMS='jobs,storage,cloud'
- XDMOD_IS_CORE=true
- XDMOD_SOURCE_DIR=$SHIPPABLE_BUILD_DIR
- XDMOD_INSTALL_DIR=/xdmod
matrix:
- XDMOD_TEST_MODE=fresh_install
- XDMOD_TEST_MODE=upgrade
build:
cache: true
cache_dir_list:
- /root/.composer
- /root/.npm
- /tmp/pear/cache
pre_ci:
- docker build -t pseudo_repo/openxdmod:latest .
pre_ci_boot:
image_name: pseudo_repo/openxdmod
image_tag: latest
pull: false
options: "--user root -e HOME=/root --shm-size 2g"
ci:
- composer install --no-progress
- ~/bin/buildrpm xdmod
- ./tests/ci/bootstrap.sh
- ./tests/ci/validate.sh
- composer install --no-progress
- ./tests/ci/scripts/qa-test-setup.sh
- composer install --no-progress
- ./tests/regression/runtests.sh --junit-output-dir `pwd`/shippable/testresults
- mv ./configuration/organization.json ./configuration/organization.json.old
- mv ./configuration/portal_settings.ini ./configuration/portal_settings.ini.old
- cp /etc/xdmod/portal_settings.ini ./configuration/portal_settings.ini
- cp /etc/xdmod/organization.json ./configuration/organization.json
- ./tests/integration/runtests.sh --junit-output-dir `pwd`/shippable/testresults
- ./tests/regression/post_ingest_test.sh --junit-output-dir `pwd`/shippable/testresults
- ./tests/component/runtests.sh --junit-output-dir `pwd`/shippable/testresults
- ./tests/ui/runtests.sh --headless --log-junit `pwd`/shippable/testresults
- ./tests/ci/samlSetup.sh
- ./tests/ui/runtests.sh --headless --log-junit `pwd`/shippable/testresults --sso
- ./vendor/phpunit/phpunit/phpunit -c ./tests/integration/phpunit.xml.dist --testsuite sso --log-junit `pwd`/shippable/testresults/xdmod-sso-integration.xml
- mv ./configuration/portal_settings.ini.old ./configuration/portal_settings.ini
- test `fgrep -v ' [ssl:warn] ' /var/log/xdmod/apache-error.log | wc -l` = 0
on_failure:
- cat /var/log/xdmod/apache-error.log
- cat /var/log/xdmod/exceptions.log
- cat /var/log/xdmod/query.log
- cat /var/log/xdmod/apache-access.log
integrations:
notifications:
- integrationName: slack-notification-xdmod
type: slack
recipients: "#xms-shippable"
on_success: change
on_failure: always
on_cancel: never
on_start: never
on_pull_request: never
resources:
- name: xdmod-time-trigger
type: time
versionTemplate:
interval: "0 2 * * *" # UTC
- name: slack_notif
type: notification
integration: slack-notification-xdmod
versionTemplate:
recipients:
- "#xms-shippable"
jobs:
- name: xdmod_runCI
type: runCI
steps:
- IN: xdmod-time-trigger
on_change:
- NOTIFY: slack_notif
on_failure:
- NOTIFY: slack_notif