forked from neos/neos-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (66 loc) · 1.83 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
dist: trusty
sudo: required
addons:
mariadb: '10.2'
apt:
sources:
- google-chrome
packages:
- google-chrome-stable fluxbox
notifications:
email: false
#
# Describe the overall env.
#
language: php
php:
- '7.1'
#
# Cache the composer and node_modules directory to speed up the the installation of dependencies.
#
cache:
yarn: true
directories:
- ../Neos/Packages/Application/Neos.Neos.Ui/node_modules
- ../Neos/Packages/Framework
- ../Neos/Packages/Libraries
- ../Neos/Packages/Sites
- $HOME/.composer/cache
#
# Parallel environments, the value represents the name of the shell script which needs to be placed in `Build/TravisCi/Scripts/[name].sh`.
#
env:
- TEST_SUITE=CodeStyle
- TEST_SUITE=UnitTests
- TEST_SUITE=IntegrationTests
#
# Set context to Production
#
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- fluxbox >/dev/null 2>&1 &
- export FLOW_CONTEXT=Production
#
# Install and setup the neos instance.
#
install:
# The correct version of node is taken from .nvmrc file
- nvm install && nvm use
# Execute the optional install shell script for the environment.
- if [ -f "Build/TravisCi/InstallScripts/$TEST_SUITE.sh" ]; then source Build/TravisCi/InstallScripts/$TEST_SUITE.sh; fi
# Since all environments depend on the node dependencies, install and
# afterwards prune them to remove extranous packages from previous/cached runs.
- make setup
- make install
#
# Execute the test environment specific shell script.
#
script:
- if [ -f "Build/TravisCi/Scripts/$TEST_SUITE.sh" ]; then source Build/TravisCi/Scripts/$TEST_SUITE.sh; fi
#
# Execute the test environment specific after_script shell script.
#
after_script:
- if [ -f "Build/TravisCi/AfterScripts/$TEST_SUITE.sh" ]; then source Build/TravisCi/AfterScripts/$TEST_SUITE.sh; fi