29 строки
926 B
YAML
29 строки
926 B
YAML
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
|
|
|
|
before_install:
|
|
- sudo apt-get install libgmp3-dev
|
|
|
|
install:
|
|
# install everything for full dev in the fxa-content-server.
|
|
- npm install --silent
|
|
# install the resources necessary for the auth server.
|
|
- cd node_modules/fxa-auth-server
|
|
- npm install --silent
|
|
- node ./scripts/gen_keys.js
|
|
- npm start &
|
|
- cd ../..
|
|
# copy over the configuration that can be used to start the server.
|
|
- cp server/config/local.json-dist server/config/local.json
|
|
- grunt po2json
|
|
- npm start &
|
|
# now run the tests!
|
|
script: grunt lint && npm run-script test-server && npm run-script test-remote
|