Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(ci): update travis to use oauth server in auth server repo
Browse files Browse the repository at this point in the history
  • Loading branch information
philbooth committed Oct 26, 2018
1 parent 12087da commit cc158a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -31,9 +31,9 @@ group: deprecated-2017Q3
cache:
directories:
- node_modules
- deps/node_modules/fxa-auth-server/node_modules
- deps/fxa-auth-server/node_modules
- deps/node_modules/fxa-profile-server/node_modules
- deps/node_modules/fxa-oauth-server/node_modules
- deps/fxa-auth-server/fxa-oauth-server/node_modules

notifications:
irc:
Expand Down
19 changes: 14 additions & 5 deletions tests/ci/deps.sh
Expand Up @@ -5,19 +5,28 @@ mkdir -p deps/node_modules
cd deps

# Auth
git clone https://github.com/mozilla/fxa-auth-server.git --depth=1
cd fxa-auth-server
if [ -d fxa-auth-server ]
then
# node_modules is cached and we can't clone into a non-empty directory
cd fxa-auth-server
git init
git remote add origin https://github.com/mozilla/fxa-auth-server.git
git fetch origin master
git checkout -f -b master origin/master
else
git clone https://github.com/mozilla/fxa-auth-server.git --depth=1
cd fxa-auth-server
fi
# Install devDeps for the Auth Server to get memory db
npm i &> /dev/null
LOG_LEVEL=error node ./node_modules/fxa-auth-db-mysql/bin/mem.js &
node ./scripts/gen_keys.js
SIGNIN_UNBLOCK_ALLOWED_EMAILS="^block.*@restmail\\.net$" SIGNIN_UNBLOCK_FORCED_EMAILS="^block.*@restmail\\.net$" npm start &> /dev/null &
cd ..

# OAuth

npm i mozilla/fxa-oauth-server &> /dev/null
cd node_modules/fxa-oauth-server
cd fxa-oauth-server
npm i > /dev/null
LOG_LEVEL=error NODE_ENV=dev node ./bin/server.js &
cd ../..

Expand Down

0 comments on commit cc158a2

Please sign in to comment.