forked from Giveth/feathers-giveth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Giveth#290 from Giveth/f_1576_downgrade_node_versi…
…on_to_8 Downgrade node version to 8
- Loading branch information
Showing
4 changed files
with
15 additions
and
570 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ jobs: | |
build: | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/node:10 | ||
- image: circleci/node:8 | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
|
@@ -26,7 +26,8 @@ jobs: | |
# # fallback to using the latest cache if no exact match is found | ||
# - v1-dependencies- | ||
|
||
- run: npm ci | ||
- run: npm install | ||
|
||
# - save_cache: | ||
# paths: | ||
# - node_modules | ||
|
@@ -36,21 +37,11 @@ jobs: | |
# - run: yarn test | ||
# run linter | ||
- run: npm run eslint | ||
- run: mkdir reports | ||
- run: | ||
command: npm run test:circleci | ||
environment: | ||
MOCHA_FILE: reports/mocha/test-results.xml | ||
when: always | ||
- store_test_results: | ||
path: reports | ||
- store_artifacts: | ||
path: ./reports/mocha/test-results.xml | ||
- deploy: | ||
name: Production Deploy | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" == "develop" ]; then | ||
ssh -o "StrictHostKeyChecking no" [email protected] 'cd feathers-giveth-develop/ && git checkout develop && git pull && [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh && nvm use 10 && npm ci && npm run serve;' | ||
ssh -o "StrictHostKeyChecking no" [email protected] 'cd feathers-giveth-develop/ && git checkout develop && git pull && npm ci && npm run serve;' | ||
fi | ||
if [ "${CIRCLE_BRANCH}" == "release" ]; then | ||
ssh -o "StrictHostKeyChecking no" [email protected] 'cd feathers-giveth-release/ && git checkout release && git pull && npm ci && npm run serve;' | ||
|
Oops, something went wrong.