This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
forked from GetDKAN/dkan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (56 loc) · 1.99 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: php
php:
- 5.4
mysql:
database: dkan_travis
username: root
encoding: utf8
install:
- cd test
- composer install
- mysql -e 'create database dkan_travis;'
- sudo apt-get update > /dev/null
- sudo apt-get --quiet=2 install php5-cgi php5-curl php5-gd php5-mysql > /dev/null
# Install latest Drush 7.
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer global require --no-interaction drush/drush:dev-master
- composer global require --no-interaction youngj/httpserver:*
before_script:
# Install DKAN
- cd ../..
- mkdir drupal
- cd drupal
- cp $TRAVIS_BUILD_DIR/drupal-org-core.make ./
- drush make --prepare-install drupal-org-core.make --yes
- cp -R $TRAVIS_BUILD_DIR profiles/
- cd profiles/dkan
- drush -y make --no-core --contrib-destination=./ drupal-org.make --no-recursion
- cd $TRAVIS_BUILD_DIR/test
- mv ../../drupal ./
- cd drupal
- drush si dkan --sites-subdir=default --db-url=mysql://root:@127.0.0.1:3306/dkan_travis --account-name=admin --account-pass=admin --site-name="DKAN" install_configure_form.update_status_module='array(FALSE,FALSE)' --yes
- drush cc all --yes
- drush --quiet --yes --root=$PWD runserver :8888 > /dev/null 2>&1 &
- sleep 4
# Setup display for selenium
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- cd ..
- wget http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar
- java -jar selenium-server-standalone-2.42.2.jar -quiet -p 4444 -log shut_up_selenium &
- sleep 5
script:
- bin/behat features/groups.feature
- bin/behat features/dataset.feature
- bin/behat features/datastore.feature
- bin/behat features/editor.feature
- bin/behat features/home.feature
- bin/behat features/search.feature
- bin/behat features/recline.feature
notifications:
slack:
rooms:
- nucivic:t3p2KxXdzymmwxitWPvfAsnK#monitor-devops
- nucivic:t3p2KxXdzymmwxitWPvfAsnK#monitor-dkan
- nucivic:t3p2KxXdzymmwxitWPvfAsnK#monitor-data-starter