Skip to content

Commit

Permalink
Merge pull request Giveth#290 from Giveth/f_1576_downgrade_node_versi…
Browse files Browse the repository at this point in the history
…on_to_8

Downgrade node version to 8
  • Loading branch information
aminlatifi authored Dec 6, 2020
2 parents 0e15065 + b11f25c commit 33f4a80
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 570 deletions.
17 changes: 4 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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;'
Expand Down
Loading

0 comments on commit 33f4a80

Please sign in to comment.