forked from Viewtiful/fs-dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (52 loc) · 1.76 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
addons:
sauce_connect: true
# Branch whitelist
branches:
only:
- master
# Caching of bower_components & node_modules disabled, due to an increase in delayed breakages
cache:
npm: false
directories: null
dist: trusty
language: node_js
node_js:
- 10
notifications:
email:
on_success: never
on_failure: change
slack:
# Custom template used because SUCCESS/FAILURE is all the way at the end by default
template:
- '%{result}: %{repository} <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>)'
- "\tin %{duration} for %{author}'s commit:"
- "\t\"%{commit_subject}\""
rooms:
- 'familysearch:S4NvL7BI3BFGOMfoiSCfARk5#treeweb-gold-builds'
on_pull_requests: false
on_success: always
on_failure: change
on_start: never
before_install:
# Create .netrc for private repo install
- 'echo -e "machine github.com\n login $GITHUB_AUTH_TOKEN" >> ~/.netrc'
- npm install -g bower
install:
# pipe bower install output through tee to create a log to parse for errors and preserve exit code
- 'bower install --config.interactive=false 2>&1 | tee bower-debug.log; ( exit ${PIPESTATUS[0]} )'
- npm install
before_script:
- node_modules/fs-common-build-scripts/bin/before_script.sh
script:
# Run linting checks, suppressing warnings for cleanliness
- npx eslint '**/*.html' '**/*.json' --quiet
- stylelint '**/*.html' '**/*.css'
# Run tests
- 'npx wct --configFile wct.conf.windows.json --skip-plugin local && npx wct --configFile wct.conf.json --skip-plugin local'
after_success:
- node node_modules/fs-common-build-scripts/bin/create_release.js
after_failure:
- node_modules/fs-common-build-scripts/bin/report_failure_details.sh
after_script:
- node_modules/fs-common-build-scripts/bin/after_script.sh