forked from ckeditor/ckeditor4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 961 Bytes
/
.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
sudo: required
dist: trusty
language: node_js
node_js:
- 4
env:
- BUILD=0 BROWSER=Chrome
- BUILD=1 BROWSER=Chrome
- BUILD=0 BROWSER=Firefox
- BUILD=1 BROWSER=Firefox
addons:
firefox: "latest"
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_script:
# Prepare environment.
- 'npm install benderjs-cli -g'
- 'sh -e /etc/init.d/xvfb start'
- 'export DISPLAY=:99.0'
# The $TRAVIS_BRANCH points to target branch for PRs and for other branches it is the current branch name.
- 'BUILD_PATH=0'
- 'if [ "$BUILD" = "1" ] && ( [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_BRANCH" = "major" ] ); then
sh -e ./dev/travis/build.sh $TRAVIS_BRANCH && BUILD_PATH="$(sh -e ./dev/travis/buildpath.sh)";
fi'
script:
- 'if [ "$BUILD" = "0" ]; then bender run -c bender.ci.js; fi'
- 'if [ "$BUILD" = "1" ] && [ "$BUILD_PATH" != "0" ]; then cd $BUILD_PATH && bender run -c bender.ci.js; fi'