This repository has been archived by the owner on May 30, 2023. It is now read-only.
forked from gr2m/appcache-nanny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (60 loc) · 1.81 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
language: node_js
node_js:
- "0.10"
cache:
directories:
- node_modules
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "sleep 5"
- curl -o travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
after_success:
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
echo "All Succeded! PUBLISHING..."
else
echo "Some Failed"
fi
fi
after_failure:
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
echo "All Failed"
else
echo "Some Failed"
fi
fi
before_deploy:
- rm -f travis_after_all.py .to_export_back
after_script:
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
notifications:
email: false
env:
matrix:
- CLIENT=saucelabs:firefox:34 # pinning version, see https://code.google.com/p/selenium/issues/detail?id=8390
- CLIENT=saucelabs:chrome
- CLIENT=saucelabs:safari:6
- CLIENT="saucelabs:iphone:8.1:OS X 10.9"
- CLIENT="saucelabs:internet explorer:11:Windows 8.1"
# FIXME:
# - CLIENT="saucelabs:internet explorer:10:Windows 8"
# https://github.com/boennemann/semantic-release#ci-server
deploy:
provider: npm
email: gregor@martynus.net
skip_cleanup: true
api_key:
secure: gBql+OfVKKxxLl6qdu9DbueEHE4K0vk6dWJ8mXUtJkpUkHOYuZkHm6fwH5u+o9SAq7smcOT3JidL8MvyAs8yD041Ks1zFsfzzy3nSqpEU5bSFkc/Xat8u/9o27nMWRdFof1xK1cTB1JBi2trOBU7ZQ9ggM/eaGvcwbm0Hin1skI=
on:
branch: master
repo: gr2m/appcache-nanny
condition: "$BUILD_LEADER$BUILD_AGGREGATE_STATUS = YESothers_succeeded"
sudo: false