forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
70 lines (64 loc) · 1.87 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# These environment variables must be set in CircleCI UI
#
# AMO_USER - api user from addons.mozilla.com
# AMO_SECRET - api key secret from addons.mozilla.com
machine:
environment:
DISPLAY: :99
PATH: "/home/ubuntu/testpilot/firefox:$PATH"
MOZ_HEADLESS: 1
hosts:
example.com: 127.0.0.1
node:
version: 6.9.1
post:
- pyenv global 2.7.12 3.6.1
dependencies:
cache_directories:
- "addon/node_modules"
- "/home/ubuntu/firefox-downloads"
# node_modules is included by default
override:
- |
curl -L -o ~/bin/jq \
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && \
chmod +x ~/bin/jq
- ./bin/circleci/install-test-dependencies.sh
- ./bin/circleci/install-node-dependencies.sh
- ./bin/circleci/build-addon.sh
- ./bin/circleci/build-version-json.sh
- ./bin/circleci/build-frontend.sh
test:
override:
- ./bin/circleci/test-addon.sh
- ./bin/circleci/test-frontend.sh
- ./bin/circleci/flake8.sh
- mkdir integration-test-results
- ./bin/circleci/test-firefox-release.sh
- ./bin/circleci/test-firefox-nightly.sh
post:
- bash <(curl -s https://codecov.io/bash)
- cp -r integration-test-results $CIRCLE_ARTIFACTS
- ./bin/deploy-storybook.sh
deployment:
static_development:
owner: mozilla
branch:
- master
commands:
- TESTPILOT_BUCKET=testpilot.dev.mozaws.net ./bin/circleci/do-exclusively.sh --branch master ./bin/deploy.sh dev
- ./bin/circleci/invalidate-cloudfront-cache.sh E2ERG47PHCWD0Z
static_l10n:
owner: mozilla
branch:
- l10n
commands:
- TESTPILOT_BUCKET=testpilot-l10n.dev.mozaws.net ./bin/deploy.sh dev
- ./bin/circleci/invalidate-cloudfront-cache.sh ELL21V1NJAJJ8
# Only notify of builds on master branch.
experimental:
notify:
branches:
only:
- master
- l10n