Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
OrcaXS committed Apr 2, 2018
1 parent 66e003e commit 67f8d98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ init:
install:
- ps: Install-Product node 9 x64
- echo Preparing API config...
- ps: Add-Content config.js "const apiPrefix = `'$Env:ANIMELOOP_API_URL`';"
- ps: Add-Content config.js "const apiPrefix = {"
- ps: Add-Content config.js " server:`'$Env:ANIMELOOP_API_URL`',"
- ps: Add-Content config.js " browser:`'$Env:ANIMELOOP_API_URL`',"
- ps: Add-Content config.js "};"
- ps: Add-Content config.js "`r`nexport default apiPrefix;"

- echo Performing yarn install...
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ node_js:
- "9"

install:
- echo "const apiPrefix = '$ANIMELOOP_API_URL';" > config.js
- echo "const apiPrefix = {" > config.js
- echo " server:'$ANIMELOOP_API_URL'," >> config.js
- echo " browser:'$ANIMELOOP_API_URL'," >> config.js
- echo "};" >> config.js
- echo "" >> config.js
- echo "export default apiPrefix" >> config.js
- yarn install
Expand Down

0 comments on commit 67f8d98

Please sign in to comment.