This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- 0.10 | |
before_script: | |
- npm rebuild | |
script: grunt karma:run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
karma: { | |
run: { | |
configFile: 'karma.conf.js', | |
singleRun: true, | |
browsers: ['PhantomJS'] | |
}, | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('fxpay', function () { | |
describe('API', function() { | |
var api; | |
var server; | |
beforeEach(function() { | |
api = new fxpay.API(); | |
server = sinon.fakeServer.create(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('fxpay', function() { | |
describe('purchase()', function() { | |
it('should error if mozPay() is undefined', function(done) { | |
var productId = '123'; | |
fxpay.purchase(productId, { | |
onpurchase: function(error) { | |
assert.equal(error, 'PAY_PLATFORM_UNAVAILABLE'); | |
done(); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
karma: { | |
dev: { | |
configFile: 'karma.conf.js', | |
autoWatch: true | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
karma: { | |
run: { | |
configFile: 'karma.conf.js', | |
singleRun: true | |
}, | |
}, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
uglify: { | |
my_target: { | |
files: { | |
'build/myscript.min.js': ['lib/myscript.js'] | |
} | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew doctor | |
Warning: A Python is installed in /Library/Frameworks | |
Homebrew only supports building against the System-provided Python or a | |
brewed Python. In particular, Pythons installed to /Library can interfere | |
with other software installs. | |
Warning: /usr/local/share/python is not needed in PATH. | |
Formerly homebrew put Python scripts you installed via `pip` or `pip3` | |
(or `easy_install`) into that directory above but now it can be removed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
These are Firefox OS device settings for testing payments in Marketplace Dev and Stage. | |
1. Download this gist and call it user.js | |
2. Run these commands from your shell to install it on device: | |
adb shell "stop b2g" | |
adb push ~/Downloads/user.js /data/local/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is a script you can run to turn on HTTP | |
# logging for a B2G device. | |
# It's not fully automatic. It will start B2G on the | |
# the device with logging enabled but when you quit (^C) | |
# you have to pull the log down from the device like this: | |
# | |
# adb pull /data/local/tmp/http.log | |
# |