Skip to content

Commit 8709bf4

Browse files
authored
Merge pull request #15 from Clever/INFRA-3175-circleci-2
[INFRA-3175] autotranslate CircleCI 1.0 -> 2.0
2 parents 95eb691 + 1ebd2dc commit 8709bf4

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/Clever/node-redis-reservation
5+
docker:
6+
- image: circleci/node:8.11.3-stretch
7+
- image: redis@sha256:858b1677143e9f8455821881115e276f6177221de1c663d0abef9b2fda02d065
8+
environment:
9+
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
10+
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
11+
steps:
12+
- run:
13+
command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s
14+
name: Clone ci-scripts
15+
- checkout
16+
- setup_remote_docker
17+
- run:
18+
command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
19+
name: Set up CircleCI artifacts directories
20+
- run:
21+
command: npm install
22+
name: npm install
23+
- run: npm test
24+
- run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN

circle.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

test/reservation.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,5 @@ describe 'redis-reservation', ->
175175
process.env.REDIS_PORT = 6666 # incorrect port
176176
test_worker = new SlowWorker resource_id: 'test_resource', (err, resp) ->
177177
console.log "ERR", err
178-
assert.equal err.message, "Redis connection to localhost:6666 failed - connect ECONNREFUSED"
178+
assert err.message.match( /Redis connection to .+:6666 failed - connect ECONNREFUSED/ )
179179
setTimeout done, 1000

0 commit comments

Comments
 (0)