forked from yvoronoy/m2install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 1.15 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
language: bash
matrix:
include:
- os: linux
dist: trusty
sudo: required
branches:
only:
- master
notifications:
email: true
cache:
directories:
- $HOME/.composer/cache
install:
# $MY_SHELL is path to bash executable. By default OSX has bash-3.
# We want test m2install with bash-4 as well
- export MY_SHELL="/bin/bash"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tests/env/osx_dependencies.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tests/env/linux_dependencies.sh; fi
- if [[ "$OSX_BASH4" ]]; then brew install bash; export MY_SHELL="/usr/local/bin/bash"; fi
- mysql -u root -e 'CREATE USER "travis"@"localhost";'
- mysql -u root -e 'CREATE DATABASE travis_magento;'
- mysql -u root -e 'GRANT ALL PRIVILEGES on travis_magento.* to "travis"@"localhost";'
#before_script:
# - curl -Ls 'https://github.com/kward/shunit2/archive/master.zip' -o 'master.zip' && unzip -q 'master.zip' && rm 'master.zip'
script:
- $MY_SHELL tests/functional/test-install-ee-with-quiet-mode.sh
- $MY_SHELL tests/functional/test-restore-dumps.sh
- $MY_SHELL tests/functional/test-restore-corrupted-dumps-missing-files.sh