forked from redCOMPONENT-COM/redCORE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
83 lines (68 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: php
sudo: required
env:
TRAVIS_PUBLIC_REPOSITORY=true
dist: xenial
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
branches:
except:
- crowdin
- crowdin-work
matrix:
fast_finish: true
install:
- . $HOME/.nvm/nvm.sh
- nvm install 8
- nvm use 8
addons:
chrome: stable
mariadb: '10.5'
cache:
apt: true
directories:
- "node_modules"
- $HOME/.composer/cache/files
before_script:
# MariaDB
- sudo mysql -e "SET Password=PASSWORD('travis')"
# APT
- sudo apt-get update
- sudo apt-get install apache2 libapache2-mod-fastcgi
- sudo apt-get install -y unzip xvfb libxi6 libgconf-2-4
- sudo apt-get install default-jdk
- npm install -g gulp
# Chromedriver
- wget https://chromedriver.storage.googleapis.com/87.0.4280.88/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
# Enable php-fpm
- sudo ./tests/travis-php-fpm.sh $USER $(phpenv version-name)
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
# Configure apache virtual hosts
- sudo cp -f ./tests/travis-ci-apache.conf /etc/apache2/sites-available/000-default.conf
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
- sudo service apache2 restart
# Build extension
- cd build
- npm install
- cp -f gulp-config.json.dist gulp-config.json
- cd ../tests
# Generic RoboFile init file
- mv RoboFile.ini.dist RoboFile.ini
script:
- composer install --prefer-dist
- cp -f acceptance.suite.yml.dist acceptance.suite.yml
- cp -f api.suite.yml.dist api.suite.yml
# System / Acceptance tests
- vendor/bin/robo run:chrome-driver
- vendor/bin/robo run:tests 1
- vendor/bin/robo send:slack-images
- vendor/bin/robo kill:chrome-driver
notifications:
slack:
secure: AeKLAsle7sQ3lGpXeNk0ePovlnf0QTggiKhHuvEH78TD5aN8OjYEqbLBhFWWcejn4hHWHOeR9pUv0wqClEGirMioWI5noQvE6D6bV9oBrAhx2FKLVxCA3YN23i+ehNpk3+FpVhkmagigiEnPZqqFcqFw5x276GVZTC8etNmzs/w=