stages: - validate - integration - jsunit - check-code - litmus - carddav - nodb - db-sqlite - db-mysql - db-postgres - deploy services: - redis variables: EXECUTOR_NUMBER: $CI_JOB_ID MYSQL_ROOT_PASSWORD: owncloud MYSQL_USER: oc_autotest MYSQL_PASSWORD: owncloud MYSQL_DATABASE: oc_autotest POSTGRES_USER: oc_autotest POSTGRES_PASSWORD: oc_autotest before_script: - git submodule update --init htaccess-checker: image: nextcloudci/php7.0:php7.0-7 stage: validate script: - php ./build/htaccess-checker.php nodb-codecov: allow_failure: true image: nextcloudci/php7.0:php7.0-7 stage: validate script: - TEST_SELECTION=NODB ./autotest.sh sqlite # - wget https://codecov.io/bash -O codecov.sh # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi" # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi" db-codecov: allow_failure: true image: nextcloudci/php7.0:php7.0-7 stage: validate script: - TEST_SELECTION=QUICKDB ./autotest.sh sqlite # - wget https://codecov.io/bash -O codecov.sh # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi" # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi" integration-capabilities_features: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh capabilities_features/capabilities.feature integration-federation_features: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh federation_features/federated.feature integration-auth: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/auth.feature integration-carddav: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/carddav.feature integration-dav-v2: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/dav-v2.feature integration-ocs-v1: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/ocs-v1.feature integration-sharing-v1: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/sharing-v1.feature integration-checksums-v1: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/checksums.feature integration-external-storage: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/external-storage.feature integration-provisioning-v1: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/provisioning-v1.feature integration-tags: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/tags.feature integration-caldav: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/caldav.feature integration-comments: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/comments.feature integration-favorites: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/favorites.feature integration-provisioning-v2: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/provisioning-v2.feature integration-webdav-related: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh features/webdav-related.feature integration-sharees-features: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh sharees_features/sharees.feature integration-setup-features: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - cd build/integration - ./run.sh setup_features/setup.feature integration-filesdrop-features: allow_failure: true image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - cd build/integration - ./run.sh filesdrop_features/filesdrop.feature integration-ldap-features: image: nextcloudci/integration-php7.0:integration-php7.0-3 stage: integration script: - ./occ maintenance:install --admin-pass=admin - ./occ app:enable user_ldap - cd build/integration - ./run.sh ldap_features/ldap-ocs.feature jsunit: image: nextcloudci/jsunit:jsunit-5 stage: jsunit script: - ./autotest-js.sh # - curl -o codecov.sh https://codecov.io/bash # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi" # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi" check-autoloader: image: nextcloudci/php7.0:php7.0-7 stage: check-code script: - bash ./build/autoloaderchecker.sh app-check-code: image: nextcloudci/php7.0:php7.0-7 stage: check-code script: - ./occ app:check-code admin_audit - ./occ app:check-code comments - ./occ app:check-code federation - ./occ app:check-code sharebymail - ./occ app:check-code systemtags - ./occ app:check-code theming - ./occ app:check-code workflowengine syntax-php5.6: image: nextcloudci/php5.6:php5.6-7 stage: check-code script: - composer install - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php . syntax-php7.0: image: nextcloudci/php7.0:php7.0-7 stage: check-code script: - composer install - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php . syntax-php7.1: image: nextcloudci/php7.1:php7.1-11 stage: check-code script: - composer install - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php . litmus-v1: image: nextcloudci/litmus-php7.0:litmus-php7.0-4 stage: litmus script: - bash tests/travis/install.sh sqlite - bash apps/dav/tests/travis/litmus-v1/script.sh litmus-v2: image: nextcloudci/litmus-php7.0:litmus-php7.0-4 stage: litmus script: - bash tests/travis/install.sh sqlite - bash apps/dav/tests/travis/litmus-v2/script.sh caldavtester-new-endpoint: image: nextcloudci/litmus-php7.0:litmus-php7.0-4 stage: carddav script: - bash tests/travis/install.sh sqlite - bash apps/dav/tests/travis/caldav/install.sh - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh caldavtester-old-endpoint: image: nextcloudci/litmus-php7.0:litmus-php7.0-4 stage: carddav script: - bash tests/travis/install.sh sqlite - bash apps/dav/tests/travis/caldav/install.sh - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh carddavtester-new-endpoint: image: nextcloudci/litmus-php7.0:litmus-php7.0-4 stage: carddav script: - bash tests/travis/install.sh sqlite - bash apps/dav/tests/travis/carddav/install.sh - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh carddavtester-old-endpoint: image: nextcloudci/litmus-php7.0:litmus-php7.0-4 stage: carddav script: - bash tests/travis/install.sh sqlite - bash apps/dav/tests/travis/carddav/install.sh - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh nodb-php5.6: image: nextcloudci/php5.6:php5.6-7 stage: nodb script: - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite nodb-php7.0: image: nextcloudci/php7.0:php7.0-7 stage: nodb script: - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite nodb-php7.1: image: nextcloudci/php7.1:php7.1-11 stage: nodb script: - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite sqlite-php5.6: image: nextcloudci/php5.6:php5.6-7 stage: db-sqlite script: - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite sqlite-php7.0: image: nextcloudci/php7.0:php7.0-7 stage: db-sqlite script: - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite sqlite-php7.1: image: nextcloudci/php7.1:php7.1-11 stage: db-sqlite script: - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite mysql-php5.6: image: nextcloudci/php5.6:php5.6-7 stage: db-mysql services: - mysql script: - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql mysql-php7.0: image: nextcloudci/php7.0:php7.0-7 stage: db-mysql services: - mysql script: - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql mysql-php7.1: image: nextcloudci/php7.1:php7.1-11 stage: db-mysql services: - mysql script: - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql postgres-php5.6: image: nextcloudci/php5.6:php5.6-7 stage: db-postgres services: - postgres script: - sleep 10 # gives the database enough time to initialize - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql postgres-php7.0: image: nextcloudci/php7.0:php7.0-7 stage: db-postgres services: - postgres script: - sleep 10 # gives the database enough time to initialize - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql postgres-php7.1: image: nextcloudci/php7.1:php7.1-11 stage: db-postgres services: - postgres script: - sleep 10 # gives the database enough time to initialize - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql deploy_openshift: stage: deploy script: - echo "Deploy to Openshift"