Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

chore: the ultimate fix for repo-tools EPERM #87

Merged
merged 1 commit into from
May 21, 2018
Merged
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
51 changes: 17 additions & 34 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,55 @@ workflows:
tests:
jobs: &workflow_jobs
- node4:
filters:
filters: &all_commits
tags:
only: /.*/
- node6:
filters:
tags:
only: /.*/
filters: *all_commits
- node8:
filters:
tags:
only: /.*/
filters: *all_commits
- node9:
filters:
tags:
only: /.*/
filters: *all_commits
- node10:
filters:
tags:
only: /.*/
filters: *all_commits
- lint:
requires:
- node4
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- docs:
requires:
- node4
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- system_tests:
requires:
- lint
- docs
filters:
filters: &master_and_releases
branches:
only: master
tags:
tags: &releases
only: '/^v[\d.]+$/'
- sample_tests:
requires:
- lint
- docs
filters:
branches:
only: master
tags:
only: '/^v[\d.]+$/'
filters: *master_and_releases
- publish_npm:
requires:
- system_tests
- sample_tests
filters:
branches:
ignore: /.*/
tags:
only: '/^v[\d.]+$/'
tags: *releases
nightly:
triggers:
- schedule:
Expand All @@ -96,14 +79,14 @@ jobs:
echo "Not a nightly build, skipping this step."
fi
- run: &npm_install_and_link
name: Install and link the module.
command: |
name: Install and link the module
command: |-
mkdir -p /home/node/.npm-global
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
npm link
chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run:
name: Run unit tests.
command: npm test
Expand Down