File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change
1
+ .git
2
+ Makefile
Original file line number Diff line number Diff line change
1
+ .PHONY : test
2
+
3
+ image :
4
+ docker build -t codeclimate/codeclimate-csslint .
5
+
6
+ test : image
7
+ docker run --rm codeclimate/codeclimate-csslint rake
Original file line number Diff line number Diff line change @@ -7,25 +7,21 @@ machine:
7
7
CODECLIMATE_DOCKER_REGISTRY_USERNAME : circleci
8
8
CODECLIMATE_DOCKER_REGISTRY_EMAIL : ops@codeclimate.com
9
9
10
- dependencies :
11
- override :
12
- - echo $gcloud_json_key_base64 | sed 's/ //g' | base64 -d > /tmp/gcloud_key.json
13
- - curl https://sdk.cloud.google.com | bash
14
- - bundle install
15
- - npm install -g codeclimate/csslint.git#7a3a6be
16
-
17
10
test :
18
11
override :
19
- - bundle exec rspec spec
20
- - docker build -t=$registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM .
12
+ - make test
21
13
22
14
deployment :
23
15
registry :
24
16
branch : master
25
17
commands :
18
+ # GCR for .com
19
+ - echo $gcloud_json_key_base64 | sed 's/ //g' | base64 -d > /tmp/gcloud_key.json
20
+ - docker tag codeclimate/codeclimate-csslint $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
26
21
- gcloud auth activate-service-account --key-file /tmp/gcloud_key.json
27
- - gcloud docker -a
28
- - docker push $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
22
+ - gcloud docker push $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
23
+
24
+ # registry.codeclimate.net for CC:E
29
25
- docker login --username=$CODECLIMATE_DOCKER_REGISTRY_USERNAME --password=$CODECLIMATE_DOCKER_REGISTRY_PASSWORD --email=$CODECLIMATE_DOCKER_REGISTRY_EMAIL $CODECLIMATE_DOCKER_REGISTRY_HOSTNAME
30
26
- docker tag $registry_root/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM $CODECLIMATE_DOCKER_REGISTRY_HOSTNAME/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
31
27
- docker push $CODECLIMATE_DOCKER_REGISTRY_HOSTNAME/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM
You can’t perform that action at this time.
0 commit comments