-
Notifications
You must be signed in to change notification settings - Fork 146
/
.travis.yml
28 lines (28 loc) · 1.13 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
language: php
php:
- '5.6'
- '5.5'
- '5.4'
- '5.3'
notifications:
email: false
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"
- cd ..
- sudo php newscoop/scripts/fixer.php
script:
- newscoop/vendor/bin/phpspec run --format pretty
- newscoop/vendor/bin/behat