forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
55 lines (51 loc) · 1.17 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
45
46
47
48
49
50
51
52
53
54
55
machine:
services:
- docker
node:
version: 4.2.6
environment:
# Deis
DEIS_CONTROLLER: https://deis.us-west.moz.works
DEIS_USERNAME: circleci
# Docker
QUAY_EMAIL: [email protected]
QUAY_USERNAME: mozmar+circleci
DOCKER_REPOSITORY: quay.io/mozmar/bedrock
DOCKER_IMAGE_TAG: "$DOCKER_REPOSITORY:$CIRCLE_BRANCH"
BASE_DOCKER_REPOSITORY: quay.io/mozmar/bedrock_base
BASE_DOCKER_IMAGE_TAG: "$BASE_DOCKER_REPOSITORY:$CIRCLE_BRANCH"
checkout:
post:
- git submodule sync
- git submodule update --init --recursive
dependencies:
cache_directories:
- node_modules
- "~/docker"
override:
- npm install -g gulp-cli
- npm install
- bin/circleci-docker-build.sh
test:
pre:
- mkdir -p "$CIRCLE_TEST_REPORTS/django"
override:
- gulp js:lint
- gulp js:test
- make test-image
deployment:
demo:
branch: /demo__.+/
owner: mozilla
commands:
- bin/circleci-demo-deploy.sh
jenkins:
branch: master
owner: mozilla
commands:
- bin/circleci-trigger-jenkins.sh
release:
tag: /\d{4}-\d{2}-\d{2}(\.\d)?/
owner: mozilla
commands:
- bin/circleci-trigger-jenkins.sh