-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml.orig
65 lines (53 loc) · 2.16 KB
/
.drone.yml.orig
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
---
kind: pipeline
name: Ubuntu 22.04 - Unit Test & Code Coverage
steps:
- name: run
image: ubuntu:22.04
environment:
DEBIAN_FRONTEND: noninteractive
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
commands:
- MAIN_REPO_DIR=$(pwd)
- apt-get update
- apt-get install -yq libicu-dev sudo cron apt-utils -yqq daemonize dbus-user-session fontconfig rsync
- daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
- ls -la
- mkdir /che-panel
- cp installers/ubuntu-22.04/install-partial/install_base.sh /che-panel/install_base.sh
- chmod +x /che-panel/install_base.sh
- /che-panel/install_base.sh
- cp installers/ubuntu-22.04/install-partial/install_web.sh /che-panel/install_web.sh
- chmod +x /che-panel/install_web.sh
- cp -r web /usr/local/che/web/
- cd /usr/local/che/web/
- ls -la
- wget https://getcomposer.org/download/latest-stable/composer.phar
- COMPOSER_ALLOW_SUPERUSER=1 che-php composer.phar install
- /che-panel/install_web.sh
- apt-get install autoconf build-essential -y
- mkdir -p /usr/local/che/php-xdebug
- cd /usr/local/che/php-xdebug
- wget http://xdebug.org/files/xdebug-3.3.2.tgz
- tar -xvzf xdebug-3.3.2.tgz
- cd xdebug-3.3.2
- /usr/local/che/php/bin/phpize
- ./configure --enable-xdebug --with-php-config=/usr/local/che/php/bin/php-config
- make
- mkdir -p /usr/local/che/php/zend-xdebug
- cp modules/xdebug.so /usr/local/che/php/zend-xdebug/xdebug.so
- chmod 777 /usr/local/che/php/zend-xdebug/xdebug.so
- cp /usr/local/che/web/tests/xdebug-php-ini.txt /usr/local/che/php/bin/php.ini
- chmod 777 /usr/local/che/php/bin/php.ini
- che-php -v
- cd /usr/local/che/web/
- chmod -R 777 vendor
- apt install composer -y
- composer test:coverage
- mv clover.xml $MAIN_REPO_DIR/clover.xml
- mv coverage.xml $MAIN_REPO_DIR/coverage.xml
- cd $MAIN_REPO_DIR
- apt install -yq pip
- pip install codecov-cli
- codecovcli --verbose upload-process -t $CODECOV_TOKEN