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

improve circle ci tests #161

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
9606697
improve circle ci tests
DominikGuzei Jul 7, 2016
4eb6a2a
update circly config
DominikGuzei Jul 7, 2016
ce3953b
fixes circle config
DominikGuzei Jul 7, 2016
be1dccf
update permissions
DominikGuzei Jul 7, 2016
59fe9ab
fixes build caching
DominikGuzei Jul 7, 2016
c3b724d
fix npm deps caching
DominikGuzei Jul 7, 2016
366ce33
fix various stuff
DominikGuzei Jul 7, 2016
5db990d
fixes acceptance tests
DominikGuzei Jul 7, 2016
cbc47c8
fixes root url of app in acceptance test
DominikGuzei Jul 7, 2016
f19ef47
Fixed app-tests up a little bit
tmeasday Jul 12, 2016
ab731e4
Ran meteor update --release 1.3.4.1
rhettlivingston Jul 4, 2016
cfd5cc3
Unpin postcss package version to fix error.
rhettlivingston Jul 4, 2016
8ea68cc
eslint-plugin-import v1.10.1 requires Node > 4 but doesn't spec it in…
rhettlivingston Jul 4, 2016
346701c
More changes having to do with unpinning postcss.
rhettlivingston Jul 5, 2016
548310a
denodeify is no longer provided by Meteor.
rhettlivingston Jul 5, 2016
3963a65
Utilized conditional importing and exporting to replace all usages of…
rhettlivingston Jul 8, 2016
13aba89
Update Meteor to 1.3.4.4 and update many packages to latest compatible.
rhettlivingston Jul 11, 2016
3ac33cb
Eliminate NPM denodeify package in favor of local implementation.
rhettlivingston Jul 11, 2016
9e6fc79
Utilize babel-eslint and its allowImportExportEverywhere option to en…
rhettlivingston Jul 11, 2016
e3f4946
Temporary change to allow continued work until eslint-plugin-import f…
rhettlivingston Jul 12, 2016
a553110
These npm-shrinkwrap changes are apparently due to utilizing a new NP…
rhettlivingston Jul 12, 2016
8d21650
Fixed 'unexpected block statement' lint error
rhettlivingston Jul 12, 2016
772fb88
Specify eslint-plugin-import >= 1.10.3
rhettlivingston Jul 13, 2016
63223f2
Removed extraneous comment.
rhettlivingston Jul 13, 2016
b2fd0af
Use `meteor npm install`
tmeasday Jul 13, 2016
69141dc
Run tests with `meteor npm`
tmeasday Jul 13, 2016
37d77d8
Run tests with `meteor npm`
rhettlivingston Jul 13, 2016
4987c74
Bump version of eslint-plugin-import
tmeasday Jul 13, 2016
e4d691a
Linter insists I write code like this..
tmeasday Jul 13, 2016
d3d1aeb
Not sure how this didn't end up in there
tmeasday Jul 13, 2016
a672527
Merge branch 'update-to-meteor-1.3.4.4' of https://github.com/rhettli…
tmeasday Jul 13, 2016
002afd1
improve circle ci tests
DominikGuzei Jul 7, 2016
b20e0d6
update circly config
DominikGuzei Jul 7, 2016
9573610
fixes circle config
DominikGuzei Jul 7, 2016
eb26f29
update permissions
DominikGuzei Jul 7, 2016
dc99ac8
fixes build caching
DominikGuzei Jul 7, 2016
e0e8d9f
fix npm deps caching
DominikGuzei Jul 7, 2016
21a1c86
fix various stuff
DominikGuzei Jul 7, 2016
4a1dfd6
fixes acceptance tests
DominikGuzei Jul 7, 2016
2a963e6
fixes root url of app in acceptance test
DominikGuzei Jul 7, 2016
733bf6d
solve merge conflicts
DominikGuzei Jul 13, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ notices-for-facebook-graph-api-2
1.2.0-meteor-platform-split
1.2.0-cordova-changes
1.2.0-breaking-changes
1.3.0-split-minifiers-package
2 changes: 2 additions & 0 deletions .meteor/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dev_bundle
local
dev_bundle
8 changes: 4 additions & 4 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mdg:validated-method
mdg:validation-error

# routing
kadira:flow-router@2.11.0
kadira:flow-router
kadira:blaze-layout
arillo:flow-router-helpers
zimme:active-route
Expand All @@ -54,7 +54,7 @@ mobile-experience
chriswessels:hammer

# production
juliancwirko:postcss@1.0.0-beta.11
juliancwirko:postcss
standard-minifier-js
ddp-rate-limiter
app-prod-security
Expand All @@ -66,9 +66,9 @@ simple:rest
# testing
factory
xolvio:cleaner
dispatch:mocha-phantomjs@0.1.6
dispatch:mocha-phantomjs
practicalmeteor:chai
practicalmeteor:sinon
practicalmeteor:mocha@2.4.5_4
practicalmeteor:mocha
hwillson:stub-collections
johanbrook:publication-collector
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[email protected]
[email protected].4.4
202 changes: 101 additions & 101 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,131 +1,131 @@
[email protected].4
[email protected].6
[email protected].8
[email protected].12
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
[email protected].2
[email protected].5
[email protected]
arillo:flow-router-helpers@0.4.5
[email protected].6
babel-compiler@6.5.2
[email protected].6
[email protected].6
[email protected].6
[email protected].5
[email protected].2
[email protected].6
[email protected].6
[email protected].7
[email protected].7
[email protected].8
[email protected].8
[email protected].2
[email protected].4
[email protected].6
cfs:[email protected].30
check@1.1.2
arillo:flow-router-helpers@0.5.2
[email protected].11
babel-compiler@6.8.4
[email protected].9_1
[email protected].9
[email protected].9
[email protected].8
[email protected].4
[email protected].9
[email protected].9
[email protected].9
[email protected].10
[email protected].11
[email protected].11
[email protected].6
[email protected].6
[email protected].9
cfs:[email protected].32
check@1.2.3
chriswessels:[email protected]
coffeescript@1.0.15
[email protected].0
coffeescript@1.1.3
[email protected].2
dburles:[email protected]
[email protected].3
[email protected].3
[email protected].3
[email protected].2
[email protected].4
[email protected].10
[email protected].3
dispatch:[email protected].6
[email protected].5
[email protected].9
[email protected].6
[email protected].5
[email protected].9
[email protected].12
[email protected].6
dispatch:[email protected].7
dispatch:[email protected]
[email protected].1
[email protected].8
[email protected].9
[email protected].10
[email protected].8
[email protected].7
[email protected].12
[email protected].12
[email protected].15
[email protected].13
[email protected]
[email protected].9
[email protected].9
[email protected].6
[email protected].2
[email protected].7
[email protected].7
[email protected].3
hwillson:[email protected].0
[email protected].5
[email protected].12
[email protected].12
[email protected].9
[email protected].4
[email protected].10
[email protected].10
[email protected].8
hwillson:[email protected].1
[email protected].8
johanbrook:[email protected]
[email protected].6
juliancwirko:postcss@1.0.0-beta.11
[email protected].9
juliancwirko:postcss@1.1.1
kadira:[email protected]
kadira:flow-router@2.11.0
[email protected].8
less@2.5.6
[email protected].16
[email protected].7
[email protected].10
mdg:validated-method@1.0.2
kadira:flow-router@2.12.1
[email protected].12
less@2.6.4
[email protected].18
[email protected].11
[email protected].14
mdg:validated-method@1.1.0
mdg:[email protected]
[email protected].12
[email protected].2
[email protected].16
[email protected].4
meteorspark:[email protected]
[email protected].9
[email protected].9
[email protected].12
[email protected].2
[email protected].10
modules@0.5.1
[email protected].1
[email protected].5
[email protected].2
npm-bcrypt@0.7.8_2
[email protected].41
[email protected].9
[email protected].5
[email protected].13
[email protected].13
[email protected].17
[email protected].4
[email protected].12
modules@0.6.5
[email protected].5
[email protected].9_1
[email protected].5
npm-bcrypt@0.8.6_2
[email protected].45
[email protected].12
[email protected].8
percolate:[email protected]
percolate:[email protected]
practicalmeteor:[email protected]_1
practicalmeteor:[email protected]_2
practicalmeteor:[email protected].5_4
practicalmeteor:[email protected].0
practicalmeteor:[email protected].5_5
practicalmeteor:[email protected].1
practicalmeteor:[email protected]_2
promise@0.6.5
promise@0.7.3
raix:[email protected]
[email protected].7
[email protected].2
[email protected].5
[email protected].7
[email protected].6
[email protected].5
[email protected].10
[email protected].5
[email protected].8
[email protected].10
[email protected].10
[email protected].8
reywood:[email protected]
[email protected].8
[email protected].7
[email protected].3
[email protected].5
[email protected].11
[email protected].10
[email protected].6
[email protected].8
simple:[email protected]
simple:[email protected]
simple:[email protected]
simple:[email protected]
simple:[email protected]
simple:[email protected]
softwarerero:accounts-t9n@1.2.2
[email protected].9
[email protected].9
[email protected].6
[email protected].4
tap:[email protected].0
[email protected].7
[email protected].2
softwarerero:accounts-t9n@1.3.4
[email protected].12
[email protected].12
[email protected].9
[email protected].8
tap:[email protected].2
[email protected].13
[email protected].4
tmeasday:[email protected]
[email protected].11
[email protected].9
[email protected].6
[email protected].7
useraccounts:core@1.13.1
useraccounts:flow-routing@1.13.1
useraccounts:unstyled@1.13.1
[email protected].6
[email protected].7
xolvio:cleaner@0.2.0
[email protected].14
[email protected].11
[email protected].9
[email protected].10
useraccounts:core@1.14.2
useraccounts:flow-routing@1.14.2
useraccounts:unstyled@1.14.2
[email protected].10
[email protected].9
xolvio:cleaner@0.3.1
zimme:[email protected]
38 changes: 38 additions & 0 deletions .testing/cache_build_and_dependencies.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env node

const path = require('path');
const spawn = require('child_process').spawn;
const baseDir = path.resolve(__dirname, '../');
const srcDir = baseDir;

const cacheMeteor = function() {
console.log('Caching build & dependencies (can take a while the first time)');
const childProcess = spawn('meteor', ['--raw-logs'], {
cwd: srcDir,
env: process.env
});
childProcess.stdout.setEncoding('utf8');
childProcess.stderr.setEncoding('utf8');
childProcess.stdout.on('data', function(line) {
process.stdout.write(line);
});
childProcess.stderr.on('data', function(line) {
process.stderr.write(line);
});
const exitAfterBuild = function exitAfterBuild(line) {
if (line.indexOf('App running at') !== -1) {
childProcess.kill();
console.log('Done caching build & dependencies');
} else if (
line.indexOf('Your application is crashing') !== -1 ||
line.indexOf('Errors prevented startup') !== -1) {
childProcess.kill();
console.error('There were issues whilst trying to cache build & dependencies');
throw new Error(line);
}
};
childProcess.stdout.on('data', exitAfterBuild);
childProcess.stderr.on('data', exitAfterBuild);
};

cacheMeteor();
3 changes: 3 additions & 0 deletions .testing/cache_build_and_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export MONGO_URL="mongodb://localhost:27017/cache"
echo "Running meteor to cache it …"
node ./.testing/cache_build_and_dependencies.js
3 changes: 3 additions & 0 deletions .testing/cache_meteor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Cache Meteor
if [ -d ~/.meteor ]; then sudo ln -s ~/.meteor/meteor /usr/local/bin/meteor; fi
if [ ! -e $HOME/.meteor/meteor ]; then curl https://install.meteor.com | sh; fi
4 changes: 4 additions & 0 deletions .testing/cache_npm_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Cache npm deps
if [ ! -e /home/ubuntu/nvm/versions/node/v5.2.0/lib/node_modules/chimp/bin/chimp.js ]; then npm install -g chimp; fi
if [ ! -e /home/ubuntu/nvm/versions/node/v5.2.0/lib/node_modules/spacejam/bin/spacejam ]; then npm install -g spacejam; fi
npm install
59 changes: 59 additions & 0 deletions .testing/chimp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env node
"use strict";

var path = require('path');
var extend = require('util')._extend;
var baseDir = path.resolve(__dirname, '../');
var srcDir = path.resolve(baseDir);
var source = require(srcDir + '/node_modules/shell-source');
var processes = require('./processes.js');
var isCi = process.argv[2] === '--ci';

var startTestApp = function(onStarted, options) {
return processes.start({
name: 'Test App',
command: 'meteor --port=3100',
waitForMessage: 'App running at: http://localhost:3100',
options: {
cwd: srcDir,
env: extend(process.env, options)
}
}, function() {
console.log("Test app is running …");
onStarted();
});
};

var startChimpWatch = function() {
processes.start({
name: 'Chimp Watch',
command: 'chimp --ddp=http://localhost:3100 --watch --path=tests --mocha --chai --browser=chrome',
options: { cwd: baseDir }
});
};

var startChimpCi = function() {
var command = 'chimp --ddp=http://localhost:3100 --path=tests --browser=chrome --mocha --chai';
processes.start({
name: 'Chimp CI',
command: command,
options: { cwd: baseDir }
});
};

if (isCi) {
// CI mode -> run once
if (process.env.CIRCLECI) {
startTestApp(startChimpCi);
} else {
// Use a different db for local ci testing to avoid nuking of the dev db
startTestApp(startChimpCi, {
MONGO_URL: 'mongodb://localhost:3001/chimp_db'
});
}
} else {
// DEV mode -> watch
startTestApp(startChimpWatch, {
MONGO_URL: 'mongodb://localhost:3001/chimp_db'
});
}
Loading