mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 20:56:29 +00:00
ade2cc7a1d
This modifies config.yml so that it will run full tests on a branch called "ci-test". This will make it easier for us to test attemtps to fix full build issues, without needing to iterate against master directly.
81 lines
1.8 KiB
YAML
81 lines
1.8 KiB
YAML
# JavaScript Node CircleCI 2.0 configuration file
|
|
#
|
|
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
|
# See https://circleci.com/docs/2.0/config-intro/#section=configuration for spec
|
|
#
|
|
version: 2.1
|
|
|
|
executors:
|
|
node10:
|
|
docker:
|
|
- image: circleci/node:10
|
|
working_directory: ~/repo
|
|
node12:
|
|
docker:
|
|
- image: circleci/node:12
|
|
working_directory: ~/repo
|
|
|
|
commands:
|
|
set_up_node_modules:
|
|
description: "load node_modules, updating and storing back into cache if necessary"
|
|
steps:
|
|
- restore_cache:
|
|
keys:
|
|
- v1-dependencies-{{ checksum "package.json" }}
|
|
# fall back to using the latest cache if no exact match is found
|
|
- v1-dependencies-
|
|
- run: yarn install
|
|
- save_cache:
|
|
paths:
|
|
- node_modules
|
|
key: v1-dependencies-{{ checksum "package.json" }}
|
|
|
|
jobs:
|
|
test:
|
|
executor: node12
|
|
steps:
|
|
- checkout
|
|
- set_up_node_modules
|
|
- run: yarn test
|
|
test_full:
|
|
executor: node12
|
|
steps:
|
|
- checkout
|
|
- set_up_node_modules
|
|
- run: yarn test --full
|
|
test_full_10:
|
|
executor: node10
|
|
steps:
|
|
- checkout
|
|
- set_up_node_modules
|
|
- run: yarn test --full
|
|
|
|
workflows:
|
|
version: 2
|
|
commit:
|
|
jobs:
|
|
- test
|
|
- test_full:
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|
|
- ci-test
|
|
- test_full_10:
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|
|
- ci-test
|
|
nightly:
|
|
triggers:
|
|
- schedule:
|
|
cron: "0 22 * * *" # 22:00 UTC
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|
|
jobs:
|
|
- test_full
|
|
- test_full_10
|