2013-08-29 04:18:09 +04:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "0.10"
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# Sauce Labs are OK with this and it is currently necessary to expose this information for testing pull requests;
|
|
|
|
# please get your own free key if you want to test yourself
|
|
|
|
- SAUCE_USERNAME: intern-example-ci
|
|
|
|
- SAUCE_ACCESS_KEY: 89ac3089-17b3-4e9b-aaf3-c475b27fa441
|
|
|
|
install:
|
2013-12-16 17:52:49 +04:00
|
|
|
# install the auth server. Only include prod resources to speed up the build.
|
2013-11-15 03:41:00 +04:00
|
|
|
- git clone git://github.com/mozilla/fxa-auth-server.git
|
|
|
|
- cd fxa-auth-server
|
2013-08-31 01:45:46 +04:00
|
|
|
- npm install
|
|
|
|
- node ./scripts/gen_keys.js
|
|
|
|
- npm start &
|
2013-12-16 17:52:49 +04:00
|
|
|
# install everything for full dev in the fxa-content-server.
|
2013-08-31 01:45:46 +04:00
|
|
|
- cd ..
|
2013-12-16 17:52:49 +04:00
|
|
|
- npm install
|
|
|
|
# for local developers, grunt-cli is installed globally.
|
|
|
|
# We have to install it for travis.
|
|
|
|
- npm install grunt-cli
|
|
|
|
# copy over the configuration that can be used to start the server.
|
|
|
|
- cp server/config/local.json-dist server/config/local.json
|
|
|
|
- npm start &
|
|
|
|
# now run the tests!
|
2013-12-10 03:22:13 +04:00
|
|
|
script: npm run-script test-remote
|