-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 loc) · 1.25 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
language: php
os: linux
dist: xenial
php:
- 7.2
- 7.3
- 7.4
addons:
chrome: stable
cache:
directories:
- $HOME/.composer/cache/files
jobs:
fast_finish: true
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer self-update --2 -q
install:
- COMPOSER_MEMORY_LIMIT=-1 composer update
- ./bin/console bolt:info
- nvm install 12.5
- npm ci
- mkdir -p ./var/log/e2e-reports/report/features/
- touch ./var/log/e2e-reports/report/features/.gitkeep
before_script:
# build assets
- npm run build
# prepare web server for e2e tests
- ./bin/console doctrine:database:create
- ./bin/console doctrine:schema:create
- ./bin/console doctrine:fixtures:load --group=without-images -n
- ./bin/console server:start 127.0.0.1:8088
# test if web server works
- sleep 3
- wget "http://127.0.0.1:8088/bolt/login"
- export PATH=$PATH:$PWD/vendor/bin
script:
# run PHP Unit
- ./vendor/bin/phpunit
# run API tests
- make behat-api-quiet
# run JS e2e tests
- travis_retry make behat-in-ci
# Upload Behat logs
- ./vendor/bin/upload-textfiles "var/log/behat-reports/*.log"