Skip to content

Commit 428ea1a

Browse files
committed
chore(ci): reconfigure CI
1 parent 6536e60 commit 428ea1a

File tree

7 files changed

+8887
-40
lines changed

7 files changed

+8887
-40
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

.travis.yml

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,72 @@
11
sudo: false
22

3-
language: node_js
3+
dist: trusty
44

5-
addons:
6-
sauce_connect: true
5+
language: node_js
76

87
cache:
98
directories:
109
- node_modules
11-
12-
node_js:
13-
- 4 # to be removed 2018-04-01
14-
- 6 # to be removed 2019-04-01
15-
- 7 # to be removed 2017-06-30
16-
- lts/* # safety net; don't remove
17-
- node # safety net; don't remove
10+
- ~/.npm
1811

1912
before_install:
20-
- npm i -g npm@latest
13+
- npm i -g npm@5
2114

22-
script:
23-
- npm t
15+
node_js: 8
2416

25-
after_success:
26-
- 'travis-after-all && npm run semantic-release'
17+
jobs:
18+
include:
19+
- stage: lint
20+
script: npm run lint
21+
- stage: test
22+
addons:
23+
chrome: stable
24+
firefox: latest
25+
before_script:
26+
- "export DISPLAY=:99.0"
27+
- "sh -e /etc/init.d/xvfb start"
28+
- sleep 3 # give xvfb some time to start
29+
script: npm run test:browser
30+
env:
31+
- QUICKLY_TEST_BROWSERS_AVAILABLE_IN_CI=1 # kept here for easier reading of build log
32+
- stage: test
33+
addons:
34+
sauce_connect: true
35+
script:
36+
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -z "$SAUCE_USERNAME" ]; then echo "Cannot run tests without SAUCE_USERNAME"; exit 1; fi'
37+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "SauceLabs tests do not run in builds of pull requests. This build will now exit"; exit 0; fi'
38+
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$SAUCE_USERNAME" ]; then npm run test:browser; fi'
39+
env:
40+
- TEST_BROWSERS_IN_SAUCELABS=1 # kept here for easier reading of build log
41+
- secure: AgiUWRCNP2z0oHCjdm3lk4YawBOQz8Q4DOrzOR3tDt2fSWo2t40cynfGJlQwpFmTvec5G04lO9bEC9/yoW7xAS0ysu5p7utngXaKtKDoq3Zr0aYLLLsCv/0PAv1YstMyo/mRbRetxob76wUFcrbB3r5alIF5YW1JCmj/O9bvdUQ=
42+
- secure: TepAZmznoPWUX12snu2eb7Sni+31tiOO6ZeU3wovrhCpGzykBNr6xAvUklr88L+uKtvfsTq8sipX0jtZvL7lcIEzujirTpjaj4QV5mUFiV2N40o+C3LdNmfmU9dhUcXRu9vMSs9uc7YfPers4We8X99UxTHxljK7VyJe39ULpRk=
43+
- SAUCE_CONNECT_READY_FILE=/tmp/sauce-connect-ready
44+
- stage: test
45+
node_js: 8 # to be removed 2019-12-01
46+
script: npm run test:node
47+
- stage: test
48+
node_js: 7 # to be removed 2017-06-30
49+
script: npm run test:node
50+
- stage: test
51+
node_js: 6 # to be removed 2019-04-01
52+
script: npm run test:node
53+
- stage: test
54+
node_js: 4 # to be removed 2018-04-01
55+
script: npm run test:node
56+
- stage: test
57+
node_js: lts/* # safety net; don't remove
58+
script: npm run test:node
59+
- stage: test
60+
node_js: node # safety net; don't remove
61+
script: npm run test:node
62+
- stage: semantic-release
63+
script:
64+
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$TRAVIS_BRANCH" != "master" ]; then echo "the deploy job only runs for the master branch. This build will now exit"; exit 0; fi
65+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then npm run semantic-release; fi
66+
env:
67+
- secure: fakflt6DaPW9NYFdUpTfQGoKFt5F1EZeSiGqWeTCZ3+VDiEC/d9rPf7JfHkDklpr4swEW7ovbfV4PHp+MeT+jje8eQAezbhdT8hAmChykeTKKfgvifMwQp6TD3DQVrf6cJqqZfkJkkzuYJjGivZ8FA4KXTglyBrjozM8KH675UU=
68+
- secure: bE+qM+B4dA+oQSfHo4BM9NVU5LCdgkEmfThfmIp3kmX19RO/1R1dlu18M1rVyDUNaqFUwCsq/W/9a+Dv1r+7knmfmJoUKuXCcIjn6WBs4Pd2kPwjCjvQ+5RWTw67v44de78AFb3IH7dT2H+fhgeHrfaI3NIV27BlKx6OqTnqDRY=
2769

2870
env:
2971
global:
30-
- secure: AgiUWRCNP2z0oHCjdm3lk4YawBOQz8Q4DOrzOR3tDt2fSWo2t40cynfGJlQwpFmTvec5G04lO9bEC9/yoW7xAS0ysu5p7utngXaKtKDoq3Zr0aYLLLsCv/0PAv1YstMyo/mRbRetxob76wUFcrbB3r5alIF5YW1JCmj/O9bvdUQ=
31-
- secure: TepAZmznoPWUX12snu2eb7Sni+31tiOO6ZeU3wovrhCpGzykBNr6xAvUklr88L+uKtvfsTq8sipX0jtZvL7lcIEzujirTpjaj4QV5mUFiV2N40o+C3LdNmfmU9dhUcXRu9vMSs9uc7YfPers4We8X99UxTHxljK7VyJe39ULpRk=
32-
- SAUCE_CONNECT_READY_FILE=/tmp/sauce-connect-ready
3372
- LOGS_DIR=/tmp/chai-build/logs
34-
- secure: fakflt6DaPW9NYFdUpTfQGoKFt5F1EZeSiGqWeTCZ3+VDiEC/d9rPf7JfHkDklpr4swEW7ovbfV4PHp+MeT+jje8eQAezbhdT8hAmChykeTKKfgvifMwQp6TD3DQVrf6cJqqZfkJkkzuYJjGivZ8FA4KXTglyBrjozM8KH675UU=
35-
- secure: bE+qM+B4dA+oQSfHo4BM9NVU5LCdgkEmfThfmIp3kmX19RO/1R1dlu18M1rVyDUNaqFUwCsq/W/9a+Dv1r+7knmfmJoUKuXCcIjn6WBs4Pd2kPwjCjvQ+5RWTw67v44de78AFb3IH7dT2H+fhgeHrfaI3NIV27BlKx6OqTnqDRY=

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<img alt="ChaiJS" src="http://chaijs.com/img/chai-logo.png"/> type-detect
44
</a>
55
</h1>
6-
6+
<br>
77
<p align=center>
88
Improved typeof detection for <a href="http://nodejs.org">node</a> and the browser.
99
</p>
@@ -52,12 +52,21 @@
5252
/>
5353
</a>
5454
<br/>
55-
<a href="https://saucelabs.com/u/chaijs-type-detect">
56-
<img
57-
alt="Selenium Test Status"
58-
src="https://saucelabs.com/browser-matrix/chaijs-type-detect.svg"
59-
/>
60-
</a>
55+
<table>
56+
<tr><th colspan=6>Supported Browsers</th></tr> <tr>
57+
<th align=center><img src="https://camo.githubusercontent.com/ab586f11dfcb49bf5f2c2fa9adadc5e857de122a/687474703a2f2f73766773686172652e636f6d2f692f3278532e737667" alt=""> Chrome</th>
58+
<th align=center><img src="https://camo.githubusercontent.com/98cca3108c18dcfaa62667b42046540c6822cdac/687474703a2f2f73766773686172652e636f6d2f692f3279352e737667" alt=""> Edge</th>
59+
<th align=center><img src="https://camo.githubusercontent.com/acdcb09840a9e1442cbaf1b684f95ab3c3f41cf4/687474703a2f2f73766773686172652e636f6d2f692f3279462e737667" alt=""> Firefox</th>
60+
<th align=center><img src="https://camo.githubusercontent.com/728f8cb0bee9ed58ab85e39266f1152c53e0dffd/687474703a2f2f73766773686172652e636f6d2f692f3278342e737667" alt=""> Safari</th>
61+
<th align=center><img src="https://camo.githubusercontent.com/96a2317034dee0040d0a762e7a30c3c650c45aac/687474703a2f2f73766773686172652e636f6d2f692f3279532e737667" alt=""> IE</th>
62+
</tr><tr>
63+
<td align=center>✅</td>
64+
<td align=center>✅</td>
65+
<td align=center>✅</td>
66+
<td align=center>✅</td>
67+
<td align=center>9, 10, 11</td>
68+
</tr>
69+
</table>
6170
<br>
6271
<a href="https://chai-slack.herokuapp.com/">
6372
<img

appveyor.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '{build}'
2+
3+
skip_tags: true
4+
skip_branch_with_pr: true
5+
clone_depth: 1
6+
deploy: off
7+
build: off
8+
9+
install:
10+
- ps: Install-Product node '8'
11+
- npm i -g npm@5
12+
- npm install
13+
14+
test_script:
15+
- node --version
16+
- npm --version
17+
- npm test
18+
19+
cache:
20+
- node_modules -> package-lock.json
21+
- '%APPDATA%\npm-cache'

0 commit comments

Comments
 (0)