forked from ckeditor/ckeditor4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (35 loc) · 1.53 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
sudo: required
dist: trusty
language: node_js
matrix:
include:
- node_js: 4
env: BUILD=0
- node_js: 4
env: BUILD=1
fast_finish: true
before_script:
- 'npm install benderjs-cli -g'
# Clone and setup ckeditor-presets repository.
- 'if [ "$BUILD" = "1" ]; then cd ..; fi'
- 'if [ "$BUILD" = "1" ]; then git clone https://github.com/ckeditor/ckeditor-presets.git; fi'
- 'if [ "$BUILD" = "1" ]; then cd ckeditor-presets; fi'
- 'if [ "$BUILD" = "1" ]; then git fetch --all; fi'
- 'if [ "$BUILD" = "1" ]; then git checkout master; fi'
- 'if [ "$BUILD" = "1" ]; then git reset --hard origin/master; fi'
# Update submodules to use HTTPS instead of SSH.
- 'if [ "$BUILD" = "1" ]; then sed -i -e "s/git\@/https:\/\//g" .gitmodules; fi'
- 'if [ "$BUILD" = "1" ]; then sed -i -e "s/com:/com\//g" .gitmodules; fi'
# Update submodules.
- 'if [ "$BUILD" = "1" ]; then git submodule update --init; fi'
# Link to ckeditor-dev repository which triggered the build.
- 'if [ "$BUILD" = "1" ]; then rm -rf ckeditor; fi'
- 'if [ "$BUILD" = "1" ]; then ln -s ../ckeditor-dev/ ckeditor; fi'
# Build full preset.
- 'if [ "$BUILD" = "1" ]; then ./build.sh full all -t; fi'
- 'if [ "$BUILD" = "1" ]; then cd "./build/$(ls -1t ./build/ | head -n 1)/full-all/ckeditor/"; fi'
# Copy bender.ci.js file as it is removed during build.
- 'if [ "$BUILD" = "1" ]; then cp ../../../../../ckeditor-dev/bender.ci.js bender.ci.js; fi'
- 'sh -e /etc/init.d/xvfb start'
- 'export DISPLAY=:99.0'
script: 'bender run -c bender.ci.js'