forked from ckeditor/ckeditor4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (43 loc) · 1.71 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
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
matrix:
allow_failures:
- node_js: 4
env: BUILD=0 BROWSER=Firefox
- node_js: 4
env: BUILD=1 BROWSER=Firefox
addons:
firefox: "latest"
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'