passman/.travis.yml

66 lines
2 KiB
YAML
Raw Normal View History

2016-09-09 23:36:35 +08:00
language: php
php:
- 5.6
- 7
2016-10-08 02:28:01 +08:00
env:
global:
- CORE_BRANCH=master
- APP_NAME=passman
2016-10-08 02:11:49 +08:00
# matrix:
2016-10-08 02:28:01 +08:00
- DB=mysql
branches:
only:
- master
2016-10-08 02:11:49 +08:00
#matrix:
# allow_failures:
# - env: DB=pgsql CORE_BRANCH=master
# include:
# - php: 5.6
# env: DB=sqlite
# - php: 5.6
# env: DB=mysql
# - php: 5.6
# env: DB=pgsql CORE_BRANCH=master
# fast_finish: true
#
2016-09-09 23:36:35 +08:00
before_install:
# enable a display for running JavaScript tests
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
2016-10-08 02:16:29 +08:00
# <- if [[ "$DB" == 'mysql' ]]; then sudo apt-get -y install mariadb-server; fi
2016-10-08 02:28:01 +08:00
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
# Add some output debugging information
2016-10-08 03:00:17 +08:00
- cd ../server
2016-10-08 02:28:01 +08:00
- ./occ check
- ./occ status
- ./occ app:list
2016-09-09 23:36:35 +08:00
- nvm install 5.9
- npm install -g npm@latest
2016-10-08 02:36:52 +08:00
- npm install grunt-cli -g
2016-10-08 02:55:17 +08:00
2016-10-08 02:11:49 +08:00
#
2016-09-09 23:36:35 +08:00
before_script:
2016-10-08 02:11:49 +08:00
# - if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
# - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
# - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
# - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"; fi
2016-10-08 02:28:01 +08:00
- cd apps/$APP_NAME/
2016-10-08 02:55:17 +08:00
- mkdir -p build
- curl -sSL https://phar.phpunit.de/phpunit.phar -o build/phpunit.phar
2016-10-08 02:28:01 +08:00
- npm install
2016-10-08 02:11:49 +08:00
# - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
# - ./occ app:enable passman
# - php -S localhost:8080 &
2016-09-09 23:36:35 +08:00
script:
2016-10-08 02:05:32 +08:00
- grunt jshint
2016-10-08 03:05:48 +08:00
# - php build/phpunit.phar -c phpunit.xml
# - php build/phpunit.phar -c phpunit.integration.xml
2016-10-08 02:37:29 +08:00
#after_failure:
# - cat ../../data/owncloud.log
2016-09-09 23:36:35 +08:00
addons:
firefox: "latest"