diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-08-31 22:19:35 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-13 19:02:25 +0200 |
commit | 18983f03b84d4d4a4ebbe62a7cf7f22e22807b61 (patch) | |
tree | cc15868ce5f6f8cb13825dfbe2a6d34a4e765d5e /.travis.yml | |
parent | 1f9db32c67f2a0116526e2bc6a06b830ad078db3 (diff) |
Test GH actions flow
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/.travis.yml b/.travis.yml index 6275d3eb7..3680e1750 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,36 +3,12 @@ dist: bionic language: php php: - - 7.2 - - 7.3 - 7.4 env: global: - MOZ_HEADLESS=1 - jobs: - - CORE_BRANCH=stable17 DB=mysql - - CORE_BRANCH=stable18 DB=pgsql - - CORE_BRANCH=stable18 DB=mysql - - CORE_BRANCH=stable19 DB=pgsql - - CORE_BRANCH=stable19 DB=mysql - CORE_BRANCH=stable19 DB=sqlite - - CORE_BRANCH=master DB=sqlite - -jobs: - exclude: - - php: 7.4 - env: CORE_BRANCH=stable17 DB=pgsql # not supported by nc - - php: 7.4 - env: CORE_BRANCH=stable17 DB=mysql # not supported by nc - - php: 7.2 - env: CORE_BRANCH=master DB=sqlite # not wanted - - php: 7.3 - env: CORE_BRANCH=master DB=sqlite # not wanted - allow_failures: - - env: - - CORE_BRANCH=master DB=sqlite - fast_finish: true before_install: - make @@ -41,13 +17,6 @@ before_install: - mv news nextcloud/apps/ before_script: - - if [[ "$DB" == 'pgsql' ]]; then psql -c "CREATE ROLE oc_autotest LOGIN PASSWORD 'oc_autotest'" -U postgres; fi - - if [[ "$DB" == 'pgsql' ]]; then psql -c "CREATE DATABASE oc_autotest OWNER oc_autotest;" -U postgres; fi - - if [[ "$DB" == 'mysql' ]]; then sudo mysql -u root -e 'CREATE DATABASE oc_autotest;'; fi - - if [[ "$DB" == 'mysql' ]]; then sudo mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY 'oc_autotest';"; fi - - if [[ "$DB" == 'mysql' ]]; then sudo mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';"; fi - - if [[ "$DB" == 'mysql' ]]; then sudo mysql -u root -e "SET GLOBAL sql_mode = 'STRICT_ALL_TABLES,ONLY_FULL_GROUP_BY';"; fi - # fill nextcloud with default configs and enable news - cd nextcloud - mkdir data @@ -59,22 +28,14 @@ before_script: --database-user="oc_autotest" --database-pass="oc_autotest" - ./occ app:enable news - - ./occ app:check-code news - - ./occ background:cron # enable default cron - php -S localhost:8080 & script: - - ./occ news:generate-explore --votes 100 "https://nextcloud.com/blog/feed/" - cd apps/news - - make test + - make js-test after_failure: - cat ../../data/nextcloud.log -after_success: - - bash <(curl -s https://codecov.io/bash) - addons: firefox: "latest-beta" - postgresql: "10" - mariadb: "10.4" |