Skip to content

Commit

Permalink
Add a gulp test command that uses test data. Should run in under 10 m…
Browse files Browse the repository at this point in the history
…inutes
  • Loading branch information
lewisnyman committed Nov 20, 2015
1 parent 45958ea commit 64fcea8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ install:
- npm install gulp -g
- npm install
- bundle install
script: gulp contributors
script: gulp test
12 changes: 12 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,15 @@ gulp.task('contributors', function(callback) {
'copytmpdist',
callback);
});

// The load test data instead of real data.
gulp.task('test', function(callback) {
runSequence(['cleantmp', 'bower', 'drupalcore'],
'testjson',
['buildcontributors', 'buildcompanies', 'buildcountries', 'javascripts', 'images', 'sass'],
'usemin',
'minifyhtml',
'cleandist',
'copytmpdist',
callback);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"gulp-jshint": "^1.9.0",
"gulp-minify-css": "0.3.11",
"gulp-minify-html": "0.1.7",
"gulp-sass": "^1.1.0",
"gulp-sass": "*",
"gulp-shell": "^0.2.11",
"gulp-uglify": "^1.0.1",
"gulp-uncss": "^0.5.1",
Expand Down
1 change: 1 addition & 0 deletions test/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"date":"2015-11-12 10:54:12 +0000","count":3302,"graph":{"one":1555,"twoTen":1314,"TenOver":433},"contributors":{"dawehner":1589,"tim.plunkett":1213,"alexpott":814,"berdir":804,"wim leers":762,"sun":705,"damiankloip":633,"xjm":548,"gábor hojtsy":502,"chx":437,"larowlan":437,"andypost":426,"jhodgdon":401,"amateescu":384,"joelpittet":360,"yched":353,"effulgentsia":351,"yesct":346,"cottser":340,"swentel":337,"nod_":323,"vijaycs85":300,"pwolanin":287,"aspilicious":252,"tstoeckler":239,"xano":231,"lewisnyman":225,"plach":225,"catch":224,"jibran":222,"lauriii":214,"droplet":206,"hussainweb":194,"parisliakos":191,"david_rothstein":186,"cilefen":180,"benjy":168,"fago":163,"mgifford":160,"phenaproxima":159,"neclimdul":157,"jessebeach":155,"crell":154,"robloach":154,"internetdevels":147,"rpayanm":144,"martin107":143,"stefan.r":141,"jhedstrom":137,"penyaskito":135,"fabianx":135,"mile23":132,"olli":127,"joshi.rohit100":126,"znerol":124,"rteijeiro":122,"bojhan":122,"er.pushpinderrana":122,"klausi":114,"longwave":113,"jeroent":109,"kim.pepper":108,"mikeryan":108,"davidhernandez":106,"webflo":104,"pfrenssen":103,"pcambra":101,"webchick":101,"jenlampton":101,"kgoel":98,"emma.maria":96,"disasm":96,"sutharsan":89,"marcingy":88,"albert volkman":87,"beejeebus":86,"cosmicdreams":86,"dave reid":78,"plopesc":77,"lokapujya":76,"ianthomas_uk":76,"idebr":76,"damien tournoud":76,"amitgoyal":76,"claudiu.cristea":75,"mortendk":75,"msonnabaum":74,"herom":74,"linclark":71,"mr.baileys":70,"attiks":70,"mrsinguyen":69,"ifrik":69,"niklas fiekas":68,"scor":67,"joachim":67,"mpdonadio":66,"lars toomre":65,"batigolix":64,"pillarsdotnet":63,"eclipsegc":62,"borisson_":61,"acf":61,"mdrummond":61,"heddn":55,"fubhy":55,"duaelfr":54,"heyrocker":54,"linl":54,"thedavidmeister":53,"geertvd":51,"manjit.singh":51,"pjonckiere":50,"quicksketch":49,"daffie":49,"mradcliffe":49,"slashrsm":48,"bfroehle":48,"chertzog":48,"shanethehat":48,"legolasbo":47,"yoroy":47,"nlisgo":47,"eiriksm":47,"googletorp":47,"steveoliver":46,"tr":46,"devin carlson":46,"mondrake":46,"katbailey":45,"jelle_s":45,"schnitzel":45,"mtift":45,"akalata":45,"tadityar":44,"manuel garcia":44,"clemens.tolboom":44,"c4rl":44,"bojanz":44,"ultimike":43,"nick_schuch":43,"mparker17":43,"das_peter":42,"bzrudi71":42,"quietone":42,"traviscarden":41,"pancho":41,"cs_shadow":40,"oriol_e9g":40,"fgm":39,"echoz":37,"dan reinders":37,"moshe weitzman":37,"johnalbin":37}}

0 comments on commit 64fcea8

Please sign in to comment.