mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
circleci: Merge install dependencies step of trusty setup into the rest.
This commit is contained in:
@@ -26,10 +26,24 @@ aliases:
|
|||||||
name: install dependencies
|
name: install dependencies
|
||||||
command: |
|
command: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
# Install moreutils so we can use `ts` and `mispipe` in the following.
|
||||||
sudo apt-get install -y moreutils
|
sudo apt-get install -y moreutils
|
||||||
|
|
||||||
|
# CircleCI sets the following in Git config at clone time:
|
||||||
|
# url.ssh://git@github.com.insteadOf https://github.com
|
||||||
|
# This breaks the Git clones in the NVM `install.sh` we run
|
||||||
|
# in `install-node`.
|
||||||
|
# TODO: figure out why that breaks, and whether we want it.
|
||||||
|
# (Is it an optimization?)
|
||||||
rm -f /home/circleci/.gitconfig
|
rm -f /home/circleci/.gitconfig
|
||||||
|
|
||||||
|
# This is the main setup job for the test suite
|
||||||
mispipe "tools/ci/setup-backend" ts
|
mispipe "tools/ci/setup-backend" ts
|
||||||
|
|
||||||
|
# Cleaning caches is mostly unnecessary in Circle, because
|
||||||
|
# most builds don't get to write to the cache.
|
||||||
|
# mispipe "scripts/lib/clean-unused-caches --verbose --threshold 0" ts
|
||||||
|
|
||||||
- &save_cache_package_json
|
- &save_cache_package_json
|
||||||
save_cache:
|
save_cache:
|
||||||
paths:
|
paths:
|
||||||
@@ -79,28 +93,7 @@ jobs:
|
|||||||
- *create_cache_directories
|
- *create_cache_directories
|
||||||
- *restore_cache_package_json
|
- *restore_cache_package_json
|
||||||
- *restore_cache_requirements
|
- *restore_cache_requirements
|
||||||
|
- *install_dependencies
|
||||||
- run:
|
|
||||||
name: install dependencies
|
|
||||||
command: |
|
|
||||||
# Install moreutils so we can use `ts` and `mispipe` in the following.
|
|
||||||
sudo apt-get install -y moreutils
|
|
||||||
|
|
||||||
# CircleCI sets the following in Git config at clone time:
|
|
||||||
# url.ssh://git@github.com.insteadOf https://github.com
|
|
||||||
# This breaks the Git clones in the NVM `install.sh` we run
|
|
||||||
# in `install-node`.
|
|
||||||
# TODO: figure out why that breaks, and whether we want it.
|
|
||||||
# (Is it an optimization?)
|
|
||||||
rm -f /home/circleci/.gitconfig
|
|
||||||
|
|
||||||
# This is the main setup job for the test suite
|
|
||||||
mispipe "tools/ci/setup-backend" ts
|
|
||||||
|
|
||||||
# Cleaning caches is mostly unnecessary in Circle, because
|
|
||||||
# most builds don't get to write to the cache.
|
|
||||||
# mispipe "scripts/lib/clean-unused-caches --verbose --threshold 0" ts
|
|
||||||
|
|
||||||
- *save_cache_package_json
|
- *save_cache_package_json
|
||||||
- *save_cache_requirements
|
- *save_cache_requirements
|
||||||
- *run_backend_tests
|
- *run_backend_tests
|
||||||
|
|||||||
Reference in New Issue
Block a user