forked from qooxdoo/qooxdoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (87 loc) · 3.04 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
84
85
86
87
88
89
90
91
92
93
94
95
96
sudo: false
language: php
php: 5.6
dist: trusty
addons:
sauce_connect:
username: "qx-core"
firefox: latest
apt:
packages:
- python-sphinx
- python-markdown
env:
global:
- secure: vW8wdbY/DmRITaFkQix8PUuE3jiwy2Yj0nn+k+yNqcwPde19ObQBq0rHJEiO5AJOBuNiWaie2n8sQQ6ceK72pU1IbIntPsztY/EFKP6x009wjmiLoifsVEGNP1kxLgFOnvCmlGjTIyGsqse5UsVt8HZs2jHK8xkkedTehuDNxtI=
# SAUCE_ACCESS_KEY
- secure: "QFvZbXLlQSdvPTGg8U4qPb/HREYXdpZZaqrZl0ab4f/w2WFPf9hS1aS/S5IG7HxdR4ie3eQZOQm/9Tj37dT9C4LAMiFGdt3awRKmgqoQmse2oKZsbv1HwamPbYkQQG3/UP/xVygk2Dt4IyikrRAYk1gTyFtWv23M9yMAn0+8Qxk="
cache:
directories:
- "/tmp/qx*"
install:
- .travis/prepare_npm
- gem install sass -v 3.4.20
before_script:
- cd framework
stages:
- name: Lint-and-Coverage
# do not run on master commits and releases
if: (repo = qooxdoo/qooxdoo) AND (type IN (pull_request))
- name: Local-Browser-Tests
# do not run on master commits and releases
if: (repo = qooxdoo/qooxdoo) AND (type IN (pull_request))
- name: SL-Browser-Tests
# do not run on master commits and releases
if: (repo = qooxdoo/qooxdoo) AND (NOT type IN (pull_request)) AND (branch = master OR tag =~ ^v[0-9])
- name: Deploy
# run only on master commits and releases
if: (repo = qooxdoo/qooxdoo) AND (NOT type IN (pull_request)) AND (branch = master OR tag =~ ^v[0-9])
jobs:
include:
- stage: Lint-and-Coverage
name: Lint
addons:
install: npm install
before_script: skip
script:
- cd framework && ../.travis/lint
- # parallel
name: Coverage
before_install: ./.travis/check-github-label ci-skip-browser-tests && exit 0 || true
script: ../.travis/coverage
- stage: Local-Browser-Tests
name: Firefox
before_install: ./.travis/check-github-label ci-skip-browser-tests && exit 0 || true
script: ../.travis/test Firefox
- # parallel
name: Chrome
before_install: ./.travis/check-github-label ci-skip-browser-tests && exit 0 || true
script: ../.travis/test Chrome_travis_ci
- stage: SL-Browser-Tests
name: SL Chrome
before_install: ./.travis/check-github-label ci-skip-browser-tests && exit 0 || true
script: ../.travis/test ChromeSL
# - # parallel
# name: SL Firefox
# before_install: ./.travis/check-github-label ci-skip-browser-tests && exit 0 || true
# script: ../.travis/test FirefoxSL
- # parallel
name: SL Edge
before_install: ./.travis/check-github-label ci-skip-browser-tests && exit 0 || true
script: ../.travis/test EdgeSL
- stage: Deploy
name: Deploy to GitHub
addons:
script: ../.travis/make-release-sdk || true
before_deploy:
- export RELEASE_PKG_FILE=$(ls dist/*.zip)
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
deploy:
provider: releases
api_key: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
file_glob: true
file: "${RELEASE_PKG_FILE}"
skip_cleanup: true
on:
repo: qooxdoo/qooxdoo
tags: true