forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
58 lines (52 loc) · 1.5 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
# 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"
hosts:
example.com: 127.0.0.1
node:
version: 6.9.1
python:
version: 2.7.11
dependencies:
cache_directories:
- "addon/node_modules"
- "/home/ubuntu/firefox-downloads"
# node_modules is included by default
override:
- ./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
- tox -e flake8
- mkdir integration-test-results
- ./bin/circleci/test-firefox-release.sh
- ./bin/circleci/test-firefox-dev.sh
- # ./bin/circleci/test-firefox-nightly.sh
post:
- bash <(curl -s https://codecov.io/bash)
- cp -r integration-test-results $CIRCLE_ARTIFACTS
deployment:
static_development:
owner: mozilla
branch:
- master
commands:
- TESTPILOT_BUCKET=testpilot.dev.mozaws.net ./bin/deploy.sh dev
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id E2ERG47PHCWD0Z --paths '/*'
# Only notify of builds on master branch.
experimental:
notify:
branches:
only:
- master