Skip to content

Commit

Permalink
chore: circle builds
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Mar 29, 2024
1 parent 2f098a7 commit dada7b9
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
node: circleci/node@5.2.0
node: cimg/node@5.2.0
pulumi: pulumi/pulumi@2.1.0

aliases:
Expand All @@ -10,18 +10,18 @@ aliases:
command: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
nvm install v18
nvm alias default v18
nvm install v18.19.1
nvm alias default v18.19.1
echo 'export NODE_OPTIONS=--max-old-space-size=12288' >> $BASH_ENV
echo 'export NG_CLI_ANALYTICS=false' >> $BASH_ENV
source $BASH_ENV
nvm use v18
nvm use v18.19.1
node --version
- &install-chrome
name: Install Chrome
command: |
nvm use v18
nvm use v18.19.1
sudo apt install -y libappindicator3-1
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome.deb
Expand All @@ -31,7 +31,7 @@ aliases:
- &install-deps
name: Install Global Dependencies
command: |
nvm use v18
nvm use v18.19.1
sudo rm -rf /etc/apt/sources.list.d/heroku.list
sudo apt-get update
sudo apt install npm
Expand All @@ -45,7 +45,7 @@ aliases:
- &install-yarn
name: Install Latest Yarn
command: |
nvm use v18
nvm use v18.19.1
# remove default yarn
sudo rm -rf $(dirname $(which yarn))/yarn*
# download latest
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
- yarn-packages-sonarqube-root-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version
- run:
name: Install Dependencies
command: nvm use v18 && yarn install
command: nvm use v18.19.1 && yarn install
no_output_timeout: 60m
- run:
name: Install Sonarqube scanner
Expand Down Expand Up @@ -121,10 +121,10 @@ jobs:
- yarn-packages-monorepo-root-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18 && yarn bootstrap
command: nvm use v18.19.1 && yarn bootstrap
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand All @@ -151,14 +151,14 @@ jobs:
- yarn-packages-desktop-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18 && yarn bootstrap
command: nvm use v18.19.1 && yarn bootstrap
no_output_timeout: 60m
- run:
name: Run Build
command: nvm use v18 && yarn build:desktop
command: nvm use v18.19.1 && yarn build:desktop
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand All @@ -185,18 +185,18 @@ jobs:
- yarn-packages-api-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18 && yarn bootstrap
command: nvm use v18.19.1 && yarn bootstrap
no_output_timeout: 60m
- run:
name: Run Packages Build
command: nvm use v18 && yarn build:package:all
command: nvm use v18.19.1 && yarn build:package:all
no_output_timeout: 60m
- run:
name: Run Build
command: nvm use v18 && yarn build:api:prod:ci
command: nvm use v18.19.1 && yarn build:api:prod:ci
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand All @@ -223,18 +223,18 @@ jobs:
- yarn-packages-web-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18 && yarn bootstrap
command: nvm use v18.19.1 && yarn bootstrap
no_output_timeout: 60m
- run:
name: Run Packages Build
command: nvm use v18 && yarn build:package:all
command: nvm use v18.19.1 && yarn build:package:all
no_output_timeout: 60m
- run:
name: Run Build
command: nvm use v18 && yarn build:gauzy:prod:ci
command: nvm use v18.19.1 && yarn build:gauzy:prod:ci
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand Down Expand Up @@ -263,15 +263,15 @@ jobs:
- yarn-packages-test-e2e-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18 && yarn bootstrap
command: nvm use v18.19.1 && yarn bootstrap
no_output_timeout: 60m

- run:
name: Run API in background
command: nvm use v18 && yarn start:api:ci
command: nvm use v18.19.1 && yarn start:api:ci
background: true

# - run:
Expand Down Expand Up @@ -313,14 +313,14 @@ jobs:

- run:
name: verify Node version
command: nvm use v18 && node --version
command: nvm use v18.19.1 && node --version

- pulumi/login

- run:
name: 'Installing NPM Packages'
command: |
nvm use v18
nvm use v18.19.1
yarn bootstrap
no_output_timeout: 60m

Expand Down

0 comments on commit dada7b9

Please sign in to comment.