-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.88 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: php
php:
# aliased to a recent 5.4.x version
- 5.4
# aliased to a recent 5.5.x version
- 5.5
# aliased to a recent 5.6.xversion
- 5.6
# aliased to a recent 7.x version
- 7.0
addons:
firefox: "40.0"
sudo: required
before_install:
- ./tests/travis/setup/setup_mysql.sh
before_script:
- ./tests/travis/setup/setup_apache.sh --githubaccount=dasscheman
## IMPORTANT! convert must be run AFTER the setup_apache.sh
## setup_apache.sh fix some assumptions where the files are stored!
- ./tests/bash_scripts/convert_selenium_to_phpunit.sh --projectfolder=LOVD3_development --continueall
- ./tests/travis/setup/setup_selenium_server.sh
script:
# Use phpunit or vendor/bin/phpunit to start tests.
# vendor/bin/phpunit is the best option to run the tests. Because this one
# is installed via composer.
# Not running phpunit installed via composer gives errors, has to do with the
# versions of the dependencies.
# - vendor/bin/phpunit ./tests/phpunit_selenium/adminTest.php
# - vendor/bin/phpunit ./tests/phpunit_selenium/authorizationTest.php
# - vendor/bin/phpunit ./tests/phpunit_selenium/collaboratorTest.php
# - vendor/bin/phpunit ./tests/phpunit_selenium/importTest.php
# - vendor/bin/phpunit ./tests/phpunit_selenium/managerTest.php
# - vendor/bin/phpunit ./tests/phpunit_selenium/submitterTest.php
# - vendor/bin/phpunit ./tests/phpunit_selenium/tempTest.php
- vendor/bin/phpunit -v tests/travis/tests/simpleTest.php
- vendor/bin/phpunit ./tests/phpunit_selenium/tempTest.php
- vendor/bin/phpunit ./tests/travis/tests/
- vendor/bin/phpunit -v -c tests/travis/phpunit.xml
## Run all tests
- vendor/bin/phpunit -v ./tests/phpunit_selenium/
notifications:
email:
recipients:
on_success: never
## [always|never|change] # default: change
on_failure: always
## [always|never|change] # default: always