forked from novius-os/novius-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 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
services:
- mysql
notifications:
email:
recipients:
on_success: change
on_failure: always
before_install:
- BRANCH=$(echo `git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}"` | cut -d" " -f2);
- git submodule update --init --recursive
- git clone git://github.com/novius-os/ci.git
- cd ci
- echo $BRANCH
- git checkout $BRANCH
- cd ..
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install -y --force-yes apache2 php5 libapache2-mod-php5 php5-mysql php5-gd php-pear
- sudo a2enmod rewrite
- cat ci/data/virtualhost-dev | sed -e "s,PATH,`pwd`/public,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
- sudo service apache2 reload
- sudo sh -c 'echo "127.0.0.1 novius-os" >> /etc/hosts'
before_script:
- sudo chmod +x ci/scripts/travis.sh
script:
- cd ci/scripts
- ./travis.sh
- sudo cp ../data/contexts.config.php ../../local/config/
- ./travis.sh
- cd ../../
- cat ci/data/virtualhost-prod | sed -e "s,PATH,`pwd`/public,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
- sudo service apache2 reload
- cd ci/scripts
- ./travis.sh