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

pull forward to master #2

Merged
merged 3 commits into from
Jul 23, 2019
Merged
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
64 changes: 64 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:8.9.1

jobs:
test:
<<: *defaults
steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Run tests
command: npm test

- save_cache:
paths:
- node_modules
key: v1-dependencies-

- persist_to_workspace:
root: ~/repo
paths: .
deploy:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npm publish

workflows:
version: 2
test-deploy:
jobs:
- test:
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.nyc_output
coverage
.topcoderrc
/node_modules
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tc-submission-cli",
"name": "@topcoder/topcoder-cli",
"version": "1.0.0",
"description": "A CLI tool that will be used by Topcoder members to submit their solutions on challenges.",
"main": "index.js",
Expand All @@ -21,7 +21,7 @@
"winston": "^3.2.1"
},
"bin": {
"tc-submission-cli": "bin/cli.js"
"tc": "bin/cli.js"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is not a valid topcoderrc file!
8 changes: 8 additions & 0 deletions test/common/test_codebases/with_rc_file/.topcoderrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"challengeIds": [
"30055247",
"30055217"
],
"username": "TonyJ",
"password": "appirio123"
}