Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
Builds site and runs a series of performance tests

Change-Type: patch
  • Loading branch information
craig-mulligan committed Jun 22, 2017
1 parent 62dc18c commit 67de42d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 14 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: node_js
node_js:
- "7"
dist: trusty
cache:
yarn: true
directories:
- node_modules

before_script:
- export DISPLAY=:99.0
- export LIGHTHOUSE_CHROMIUM_PATH="$(pwd)/chrome-linux/chrome"
- sh -e /etc/init.d/xvfb start
- curl -L https://raw.githubusercontent.com/GoogleChrome/lighthouse/master/lighthouse-core/scripts/download-chrome.sh | bash

script:
- yarn run export
- yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-twitter-widgets": "1.3.0",
"react-typekit": "1.0.8",
"reactstrap": "4.6.2",
"resin-event-log": "1.4.0",
"resin-event-log": "^1.6.0",
"sniffr": "^1.1.4"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const runTest = function(url) {
}).start();
}

app.use('/', express.static(path.join(__dirname, '../build')));
app.use(compression());
app.use('/', express.static(path.join(__dirname, '../build')));

const server = app.listen(1337, function() {
console.log('Listening on port: ' + 1337);
Expand Down
38 changes: 26 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2365,6 +2365,12 @@ googleapis@^16.0.0:
google-auth-library "~0.10.0"
string-template "~1.0.0"

gosquared@3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/gosquared/-/gosquared-3.1.0.tgz#3484f8f0640cf5860db3a73ba9fc0248525a604c"
dependencies:
request "^2.51.0"

got@^6.7.1:
version "6.7.1"
resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0"
Expand Down Expand Up @@ -4293,7 +4299,7 @@ repeating@^2.0.0:
dependencies:
is-finite "^1.0.0"

request@2, request@2.x, request@^2.72.0, request@^2.74.0, request@^2.79.0, request@^2.81.0:
request@2, request@2.x, request@^2.51.0, request@^2.72.0, request@^2.74.0, request@^2.79.0, request@^2.81.0:
version "2.81.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
dependencies:
Expand Down Expand Up @@ -4339,29 +4345,37 @@ require-uncached@^1.0.2:
caller-path "^0.1.0"
resolve-from "^1.0.0"

resin-event-log@1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/resin-event-log/-/resin-event-log-1.4.0.tgz#9c922c4970dba633e0dce0f7eb06126044c95a24"
resin-event-log@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/resin-event-log/-/resin-event-log-1.6.0.tgz#5ca52f95985496605e462ff2436d150834f22564"
dependencies:
bluebird "^3.4.7"
lodash "^4.0.0"
resin-mixpanel-client "^2.1.0"
resin-universal-ga "^1.1.0"
resin-mixpanel-client "^2.2.0"
resin-universal-ga "^1.2.0"
resin-universal-gosquared "^0.2.0"

resin-mixpanel-client@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/resin-mixpanel-client/-/resin-mixpanel-client-2.1.0.tgz#6292ddfe1ee5a6609fb38918509aa65b0681cde8"
resin-mixpanel-client@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/resin-mixpanel-client/-/resin-mixpanel-client-2.2.0.tgz#cb05bff660140376c4918d60546d68e62f49f36b"
dependencies:
bluebird "^3.4.7"
resin-universal-mixpanel "^2.1.0"

resin-universal-ga@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/resin-universal-ga/-/resin-universal-ga-1.1.0.tgz#645f84dd3557b38835c3a37af68d941ecd5d9c6b"
resin-universal-ga@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/resin-universal-ga/-/resin-universal-ga-1.2.0.tgz#9076db3b6ea32333065e0c8269cc41524fa3640f"
dependencies:
bluebird "^3.4.7"
universal-analytics "^0.4.8"

resin-universal-gosquared@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/resin-universal-gosquared/-/resin-universal-gosquared-0.2.0.tgz#e7086e5c8a867ad09365c052eba6d0016b90c80c"
dependencies:
bluebird "^3.4.7"
gosquared "3.1.0"

resin-universal-mixpanel@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/resin-universal-mixpanel/-/resin-universal-mixpanel-2.1.0.tgz#1edb2d313ca794322cdd9882dd24b3e5909bb207"
Expand Down

0 comments on commit 67de42d

Please sign in to comment.