Skip to content

Commit

Permalink
Merge pull request #204 from relative-ci/circleci-project-setup
Browse files Browse the repository at this point in the history
Circleci project setup
  • Loading branch information
vio authored Jan 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents cc93c41 + 7ead8b4 commit 0d3cff2
Showing 3 changed files with 27 additions and 10 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
jobs:
test:
executor:
name: node/default
tag: '10.23'
steps:
- checkout
- node/install-packages
- run:
command: npm run build
- run:
command: npm run lint
- run:
command: npm run test
orbs:
node: circleci/node@4.1.0
version: 2.1
workflows:
test_my_app:
jobs:
- test
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions test/webpack-plugin.test.js
Original file line number Diff line number Diff line change
@@ -20,6 +20,9 @@ const ENV_DEFAULT = {
CIRCLE_BRANCH: 'master',
CIRCLE_PROJECT_USERNAME: 'organization',
CIRCLE_PROJECT_REPONAME: 'project',
CIRCLE_BUILD_URL: '#',
CIRCLE_BUILD_NUM: 123,
CIRCLE_PR_NUMBER: 10,
};

const MOCK_RESULT = {
@@ -48,6 +51,9 @@ const getMockRequest = (customPayload) => ({
job: {
commit: 'abcd1234',
branch: 'master',
prNumber: '10',
buildNumber: '123',
buildUrl: '#',
},
rawData: {
webpack: {

0 comments on commit 0d3cff2

Please sign in to comment.