mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
* copy bazelversion * use bazelversion * add a script and set bazel version Former-commit-id: b97d226294e08c11cf2b337b80b029d21dfe44c0
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
|
# See: https://circleci.com/docs/2.0/configuration-reference
|
|
version: 2.1
|
|
|
|
commands:
|
|
setup-tools:
|
|
description: |
|
|
Setup the Bazel build system used for building bazel projects
|
|
steps:
|
|
- run:
|
|
name: Run bazels3cache
|
|
command: bazels3cache --bucket=eagle0bazel
|
|
|
|
setup-secret:
|
|
description: |
|
|
Set up the secret used for bazel remote caching
|
|
|
|
steps:
|
|
- run:
|
|
name: Create a bazelrc file
|
|
command: |
|
|
echo "\\\# circleci-specific bazelrc entries"
|
|
echo ""
|
|
echo "build --remote_cache=http://localhost:7777" >> .bazelrc
|
|
echo "build --remote_upload_local_results=true" >> .bazelrc
|
|
echo "build --jobs=8" >> .bazelrc
|
|
echo "test --remote_cache=http://localhost:7777" >> .bazelrc
|
|
echo "test --remote_upload_local_results=true" >> .bazelrc
|
|
echo "test --jobs=8" >> .bazelrc
|
|
- run:
|
|
name: cat the bazelrc file
|
|
command: cat .bazelrc
|
|
|
|
jobs:
|
|
test:
|
|
docker:
|
|
- image: nolen777/circleci-bazelisk:0.0.6
|
|
|
|
resource_class: large
|
|
|
|
steps:
|
|
- checkout
|
|
- setup-tools
|
|
- setup-secret
|
|
- run:
|
|
name: Run tests
|
|
command: ./ci/bazel_test_cci.sh
|
|
|
|
build:
|
|
docker:
|
|
- image: nolen777/circleci-bazelisk:0.0.6
|
|
|
|
resource_class: large
|
|
|
|
steps:
|
|
- checkout
|
|
- setup-tools
|
|
- setup-secret
|
|
- run:
|
|
name: Build servers
|
|
command: ./ci/build_servers_cci.sh
|
|
|
|
- store_artifacts:
|
|
path: ./eagle_servers.tar.gz
|
|
|
|
- store_artifacts:
|
|
path: ./shardok.tar.gz
|
|
|
|
workflows:
|
|
build-workflow:
|
|
jobs:
|
|
- test:
|
|
context:
|
|
- bazel
|
|
- build:
|
|
context:
|
|
- bazel
|