Skip to content

Jkg/test 142745 #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 47 additions & 53 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,58 @@
version: 2.1
orbs:
node: circleci/[email protected]
heroku: circleci/[email protected]
version: 2.1 # Use version 2.1 to enable Orb usage.

parameters:
skipUnitTests:
description: if set to true will not build the c++ unit tests
type: boolean
default: true
skipSystemTests:
description: if set to true will not build the c++ system tests
type: boolean
default: true
updateTranslation:
description: if set to true will update the translation files
type: boolean
default: true


jobs:
build_and_test:
Prep1:
docker:
- image: cimg/node:17.2.0
- image: cimg/base:edge
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
command: yarn test
name: Run tests
- run: echo "This was triggered by << pipeline.trigger_source >>"
Prep2:
docker:
- image: cimg/base:edge
steps:
- checkout
- run: echo "This was triggered by << pipeline.trigger_source >>"
Prep3:
docker:
- image: cimg/base:edge
steps:
- checkout
- run: echo "This was triggered by << pipeline.trigger_source >>"
- run:
command: yarn build
name: Build app
- persist_to_workspace:
root: ~/project
paths:
- .
deploy: # this can be any name you choose
command: |
exit 1

release:
docker:
- image: cimg/node:17.2.0
- image: cimg/base:edge
parameters:
release_type:
type: string
default: "release"
steps:
- attach_workspace:
at: ~/project
- heroku/deploy-via-git:
force: true # force push when pushing to the heroku remote, see: https://devcenter.heroku.com/articles/git
- checkout
- run: echo "This was triggered by << pipeline.trigger_source >>"


workflows:
on_commit:
jobs:
- build_and_test
# Follow instructions here to authenticate git for Heroku: https://devcenter.heroku.com/articles/git#http-git-authentication
# The following code may be uncommented, onnce HEROKU_API_KEY & HEROKU_APP_NAME environemnt variables are present
# Read more: https://circleci.com/docs/2.0/env-vars/
# - deploy:
# requires:
# - build_and_test # only deploy if the build_and_test job has completed
# filters:
# branches:
# only: master # only deploy when on main/master
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
unit_tests_workflow:
jobs:
- build_and_test
# Follow instructions here to authenticate git for Heroku: https://devcenter.heroku.com/articles/git#http-git-authentication
# The following code may be uncommented, onnce HEROKU_API_KEY & HEROKU_APP_NAME environemnt variables are present
# Read more: https://circleci.com/docs/2.0/env-vars/
# - deploy:
# requires:
# - build_and_test # only deploy if the build_and_test job has completed
# filters:
# branches:
# only: master # only deploy when on main/master
- Prep1
- Prep2
- Prep3
Loading