-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcircle.yml
executable file
·44 lines (44 loc) · 1.25 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
machine:
node:
version: 4.2.1
services:
- docker
environment:
MAJOR: 0
MINOR: 1
VERSION: $MAJOR.$MINOR.$CIRCLE_BUILD_NUM
general:
artifacts:
- coverage
test:
pre:
- npm run lint
- docker build -t resonator:testing .
override:
- npm run test
- npm run coverage-1
- npm run coverage-2
- npm run coverage-3
- npm run coverage-4
- npm run coverage-5
- npm run coverage-6
- cd test/dockerized-testing-environment && docker-compose up -d && sleep 5 && docker-compose run resonator run dockertest
deployment:
npm_dockerhub:
branch: master
commands:
- npm version $VERSION --no-git-tag-version
- "printf \"_auth=$NPM_AUTH\\nemail=$NPM_USERNAME\\n\" > npmrc"
- npm publish --userconfig npmrc
- rm npmrc
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag resonator:testing $DOCKERHUB_BASE/resonator:$VERSION
- docker push $DOCKERHUB_BASE/resonator:$VERSION
- docker tag resonator:testing $DOCKERHUB_BASE/resonator:latest
- docker push $DOCKERHUB_BASE/resonator:latest
notify:
webhooks:
- url: 'https://igz006.herokuapp.com/api/activity/circleci'
dependencies:
pre:
- sudo pip install -U docker-compose==1.3.3