More updates to attempt to resolve Travis CI issues.
This commit is contained in:
parent
69a27b35e0
commit
fb59f31a57
|
@ -12,9 +12,9 @@ sudo: required
|
|||
dist: trusty
|
||||
|
||||
install:
|
||||
- chmod a+x $TRAVIS_BUILD_DIR/install.sh
|
||||
- chmod a+x $TRAVIS_BUILD_DIR/testing.sh
|
||||
- chmod a+rx -R $TRAVIS_BUILD_DIR
|
||||
- $TRAVIS_BUILD_DIR/install.sh
|
||||
- $TRAVIS_BUILD_DIR/testing.sh
|
||||
|
||||
script:
|
||||
- cd $TRAVIS_BUILD_DIR && ./vendor/bin/codecept run
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' ansible|grep "install ok installed")
|
||||
echo Checking for Ansible: $PKG_OK
|
||||
|
||||
if [ "" == "$PKG_OK" ]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -q -y software-properties-common
|
||||
sudo add-apt-repository -y ppa:ansible/ansible
|
||||
|
||||
sudo add-apt-repository -y ppa:fkrull/deadsnakes-python2.7
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -q -y python2.7 python-pip python-mysqldb ansible
|
||||
fi
|
||||
|
||||
echo "Installing AzuraCast (Functional Testing Mode)"
|
||||
ansible-playbook util/ansible/deploy.yml --inventory=util/ansible/hosts --extra-vars "app_env=development testing_mode=true"
|
|
@ -7,6 +7,7 @@
|
|||
app_base: "{{ www_base | dirname }}"
|
||||
tmp_base: "{{ app_base }}/www_tmp"
|
||||
app_env: "development"
|
||||
testing_mode: false
|
||||
|
||||
dev_azuracast_user_password: "azuracast"
|
||||
dev_mysql_root_password: "password"
|
||||
|
@ -23,5 +24,5 @@
|
|||
- mariadb
|
||||
- composer
|
||||
- azuracast-db
|
||||
- azuracast-cron
|
||||
- { role: azuracast-build, when: app_env == 'development' }
|
||||
- { role: azuracast-cron, when: testing_mode == false }
|
||||
- { role: azuracast-build, when: testing_mode == false && app_env == 'development' }
|
|
@ -3,7 +3,7 @@
|
|||
become: true
|
||||
become_user: azuracast
|
||||
shell: php {{ util_base }}/cli.php cache:clear
|
||||
when: azuracast_db_created.changed
|
||||
when: azuracast_db_created.changed && testing_mode == false
|
||||
|
||||
- name: Install Initial Database
|
||||
mysql_db: state=import name="azuracast" target="{{ util_base }}/azuracast_db.sql"
|
||||
|
@ -13,4 +13,9 @@
|
|||
become: true
|
||||
become_user: azuracast
|
||||
shell: php {{ util_base }}/cli.php migrations:migrate --no-interaction --allow-no-migration
|
||||
when: azuracast_db_created.changed
|
||||
when: azuracast_db_created.changed && testing_mode == false
|
||||
|
||||
- name: Apply DB Migrations (Testing Mode)
|
||||
become: true
|
||||
shell: php {{ util_base }}/cli.php migrations:migrate --no-interaction --allow-no-migration
|
||||
when: azuracast_db_created.changed && testing_mode == true
|
|
@ -7,6 +7,7 @@
|
|||
app_base: "{{ www_base | dirname }}"
|
||||
tmp_base: "{{ app_base }}/www_tmp"
|
||||
app_env: "production"
|
||||
testing_mode: false
|
||||
|
||||
roles:
|
||||
- init
|
||||
|
|
Loading…
Reference in New Issue