Skip to content

Commit cd00b28

Browse files
committed
Fix testing on forks
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 515bdf2 commit cd00b28

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.drone.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ steps:
8181
- cd /var/www/
8282
- git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server html
8383
- cd /var/www/html && git submodule update --init
84-
- cd /var/www/html/apps/ && git clone -b $DRONE_SOURCE_BRANCH https://github.com/nextcloud/user_saml.git
84+
# use local clone
85+
- cp -r /drone/src /var/www/html/apps/user_saml
8586
- scl enable rh-php72 "bash -c 'php /var/www/html/occ maintenance:install --database sqlite --admin-pass password; php /var/www/html/occ app:enable user_saml'"
8687
- chown -R apache:apache /var/www/html/
8788
- scl enable rh-php72 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"
@@ -125,7 +126,8 @@ steps:
125126
- cd /var/www/
126127
- git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server html
127128
- cd /var/www/html && git submodule update --init
128-
- cd /var/www/html/apps/ && git clone -b $DRONE_SOURCE_BRANCH https://github.com/nextcloud/user_saml.git
129+
# use local clone
130+
- cp -r /drone/src /var/www/html/apps/user_saml
129131
- scl enable rh-php72 "bash -c 'php /var/www/html/occ maintenance:install --database sqlite --admin-pass password; php /var/www/html/occ app:enable user_saml'"
130132
- chown -R apache:apache /var/www/html/
131133
- scl enable rh-php72 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"
@@ -168,7 +170,8 @@ steps:
168170
- cd /var/www/
169171
- git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server html
170172
- cd /var/www/html && git submodule update --init
171-
- cd /var/www/html/apps/ && git clone -b $DRONE_SOURCE_BRANCH https://github.com/nextcloud/user_saml.git
173+
# use local clone
174+
- cp -r /drone/src /var/www/html/apps/user_saml
172175
- scl enable rh-php70 "bash -c 'php /var/www/html/occ maintenance:install --database sqlite --admin-pass password; php /var/www/html/occ app:enable user_saml'"
173176
- chown -R apache:apache /var/www/html/
174177
- scl enable rh-php70 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"
@@ -211,7 +214,8 @@ steps:
211214
- cd /var/www/
212215
- git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server html
213216
- cd /var/www/html && git submodule update --init
214-
- cd /var/www/html/apps/ && git clone -b $DRONE_SOURCE_BRANCH https://github.com/nextcloud/user_saml.git
217+
# use local clone
218+
- cp -r /drone/src /var/www/html/apps/user_saml
215219
- scl enable rh-php70 "bash -c 'php /var/www/html/occ maintenance:install --database sqlite --admin-pass password; php /var/www/html/occ app:enable user_saml'"
216220
- chown -R apache:apache /var/www/html/
217221
- scl enable rh-php70 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"

0 commit comments

Comments
 (0)