forked from sourcefabric/Newscoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (36 loc) · 1.48 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
language: php
matrix:
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: nightly
allow_failures:
- php: nightly
fast_finish: true
notifications:
email: false
hipchat:
rooms:
secure: ArA/zjwjNhHWUQauavuyqkHGD6vGoiav1DJrnw2dl6qPDKXe220i/Y0AbbcSh2BazG1cf2B/nkgoWPPCz+xRN7/6tbNV7AkYuN+y0WomBqx/BMaFr6uofgGa0OABZ3XN/Madx9yOE+3q0iJnje41ymJtdpzC23urZ5ma3jxltBs=
before_script:
- sudo apt-get update > /dev/null
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl php5-gd postfix
- echo "$(curl -fsSL https://gist.github.com/ahilles107/8255528/raw/fa949a791fe882323a34decd3b0caf130b6d52d6/travis_newscoop.dev)" | sed -e "s,PATH,`pwd`/newscoop,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
- echo "127.0.0.1 newscoop.dev" | sudo tee -a /etc/hosts
- sudo a2enmod rewrite
- sudo service apache2 restart
- mysql -e 'create database newscoop;' -uroot
- cd newscoop/
- composer self-update
- composer install --prefer-dist
- "./application/console newscoop:install --fix --database_name newscoop --database_user root --no-client"
- sudo php upgrade.php
- "./application/console oauth:create-client testclient newscoop.dev newscoop.dev --test"
- "./application/console user:create [email protected] testpassword testuser 'Test Name' 'Test Surname' true 1 1 --isAdmin"
- cd ..
- sudo php newscoop/scripts/fixer.php
script:
- newscoop/vendor/bin/phpspec run --format pretty
- newscoop/vendor/bin/behat