Skip to content
Browse files

Removing shifter and using yogi to build

  • Loading branch information...
1 parent 4aa7c1a commit dfc478732e894486c6ec2455c1022ba8c654b5fb @davglass davglass committed Jan 3, 2013
Showing with 2 additions and 98 deletions.
  1. +2 −4 src/common/travis/before.sh
  2. +0 −79 src/common/travis/get_pull_files.js
  3. +0 −15 src/common/travis/gettests.js
View
6 src/common/travis/before.sh
@@ -10,13 +10,11 @@ cd ../../yui;
wait
if [ -n "$TRAVIS" ]; then
- echo "Installing Shifter.."
- npm -g install shifter -loglevel silent
echo "Installing Yogi"
npm -g install yogi -loglevel silent
cd ../
- echo "building entire library";
- shifter --walk --no-lint --cache
+ echo "building entire library with yogi";
+ yogi build --no-lint --cache
cd yui;
else
make npm
View
79 src/common/travis/get_pull_files.js
@@ -1,79 +0,0 @@
-#!/usr/bin/env node
-
-var ID = process.env.TRAVIS_PULL_REQUEST_NUMBER;
-var USER = 'yui';
-var fs = require('fs');
-var path = require('path');
-var https = require('https');
-var spawn = require('child_process').spawn;
-var base = path.join(__dirname, '../../');
-var mods = {};
-
-if (base.indexOf('/home/travis/builds/') > -1)
- USER = base.replace('/home/travis/builds/', '').split('/')[0];
-}
-
-if (!ID) {
- process.exit(0);
-}
-
-console.log('Fetching files from pull request #' + ID, 'from user', USER);
-
-https.get({
- hostname: 'api.github.com',
- path: '/repos/' + USER + '/yui3/pulls/' + ID + '/files'
-}, function(res) {
- var data = '';
- res.on('data', function(c) {
- data += c;
- });
-
- res.on('end', function() {
- console.log('processing files');
- var json = JSON.parse(data);
- var files = {};
- json.forEach(function(item) {
- if (item.filename && item.filename.indexOf('src/') === 0) {
- files[item.filename] = true;
- }
- });
- Object.keys(files).forEach(function(file) {
- var mod = file.split('/')[1];
- mods[mod] = true;
- });
- mods = Object.keys(mods).sort();
- mods.push('yui');
- mods.reverse();
-
- console.log('Building', mods.join(','));
- build();
- });
-});
-
-var build = function() {
- var mod = mods.pop();
- if (!mod) {
- console.log('all builds complete');
- process.exit(0);
- return;
- }
- console.log('building', mod, 'from', path.join(base, mod));
- console.log('ONLY STDERR WILL BE PRINTED');
-
- var child = spawn('shifter', ['--no-coverage', '--no-lint'], {
- cwd: path.join(base, mod)
- });
-
- child.stderr.on('data', function(d) {
- process.stderr.write(d.toString());
- });
-
- child.on('exit', function(code) {
- if (code) {
- console.log('Build Failed');
- process.exit(code);
- }
- build();
- });
-
-};
View
15 src/common/travis/gettests.js
@@ -1,15 +0,0 @@
-#!/usr/bin/env node
-
-process.chdir(__dirname);
-
-var fs = require('fs');
-
-var root = process.argv[2],
- path = require('path');
-
-var json = JSON.parse(fs.readFileSync('./tests.json', 'utf8'));
-
-json.tests.forEach(function(v, k) {
- json.tests[k] = path.join(root, v);
-});
-console.log(json.tests.join(' '));

0 comments on commit dfc4787

Please sign in to comment.
Something went wrong with that request. Please try again.