forked from GetDKAN/dkan-drops-7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 1.2 KB
/
.travis.yml
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
language: php
php:
- '7.2'
services:
- mysql
mysql:
database: dkan_drops_test
username: root
encoding: utf8
before_script:
# Install drush
- cd ..
- git clone --branch 8.x https://github.com/drush-ops/drush.git
- export PATH="`pwd`/drush:$PATH"
- cd dkan-drops-7
# install php packages required for running a web server from drush on php 7.2
- sudo apt-get update
- sudo apt-get install -y --force-yes php-cgi php-mysql
# disable sendmail
- echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
# create new site, stubbing sendmail path with true to prevent delivery errors and manually resolving drush path
- mysql -e 'create database dkan_drops_test'
- drush --yes si dkan --db-url=mysql://root:@127.0.0.1/dkan_drops_test
- drush --yes en simpletest
# start a web server on port 8080, run in the background; wait for initialization
- drush runserver 127.0.0.1:8080 &
- until netstat -an 2>/dev/null | grep '8080.*LISTEN'; do true; done
script:
- drush test-run --uri=http://127.0.0.1:8080
notifications:
slack:
rooms:
# - nucivic:t3p2KxXdzymmwxitWPvfAsnK#monitor-devops
# - nucivic:t3p2KxXdzymmwxitWPvfAsnK#monitor-dkan