This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1127 from mozilla/prepare-4.1.0
Prepare 4.1.0
- Loading branch information
Showing
171 changed files
with
26,662 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: 0 | ||
tasks: | ||
- provisionerId: '{{ taskcluster.docker.provisionerId }}' | ||
workerType: '{{ taskcluster.docker.workerType }}' | ||
scopes: | ||
- "secrets:get:project/testpilot/notes" | ||
extra: | ||
github: | ||
events: | ||
- pull_request.opened | ||
- pull_request.reopened | ||
- pull_request.synchronize | ||
- push | ||
- release | ||
payload: | ||
features: | ||
taskclusterProxy: true | ||
maxRunTime: 3600 | ||
image: circleci/android:api-25-node8-alpha | ||
command: | ||
- /bin/bash | ||
- '--login' | ||
- '-c' | ||
- >- | ||
cd ~ && git clone {{event.head.repo.url}} repo && cd repo && git config | ||
advice.detachedHead false && git checkout {{event.head.sha}} && cd native && | ||
source ./misc/taskcluster_secrets.sh && | ||
npm install . && cd android && set +x && | ||
./gradlew assembleRelease -PMYAPP_RELEASE_STORE_FILE=$MYAPP_RELEASE_STORE_FILE -PMYAPP_RELEASE_KEY_ALIAS=$MYAPP_RELEASE_KEY_ALIAS -PMYAPP_RELEASE_STORE_PASSWORD=$MYAPP_RELEASE_STORE_PASSWORD -PMYAPP_RELEASE_KEY_PASSWORD=$MYAPP_RELEASE_KEY_PASSWORD && | ||
set -x && cp app/build/outputs/apk/release/app-release.apk /tmp | ||
artifacts: | ||
'public/app-release.apk': | ||
type: 'file' | ||
path: '/tmp/app-release.apk' | ||
expires: "{{ '1 month' | $fromNow }}" | ||
metadata: | ||
name: Test Pilot Notes | ||
description: Test Pilot Notes | ||
owner: '{{ event.head.user.email }}' | ||
source: '{{ event.head.repo.url }}' | ||
allowPullRequests: collaborators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,73 @@ | ||
machine: | ||
node: | ||
version: 6 | ||
version: 2 | ||
jobs: | ||
webextension: | ||
working_directory: ~/notes | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
|
||
test: | ||
override: | ||
- npm run build | ||
- npm run lint | ||
- restore_cache: | ||
key: node-v1-{{ checksum "package.json" }}-{{ arch }} | ||
|
||
# Build the extension and copy to artifacts directory. | ||
- cp web-ext-artifacts/*.zip $CIRCLE_ARTIFACTS | ||
- run: npm install | ||
|
||
- save_cache: | ||
key: node-v1-{{ checksum "package.json" }}-{{ arch }} | ||
paths: | ||
- node_modules | ||
|
||
- run: npm run build | ||
- run: npm run lint | ||
|
||
- persist_to_workspace: | ||
root: ~/notes | ||
paths: | ||
- node_modules | ||
|
||
- run: mkdir -p /tmp/artifacts; | ||
- run: cp web-ext-artifacts/*.zip /tmp/artifacts | ||
|
||
- store_artifacts: | ||
path: /tmp/artifacts | ||
|
||
android: | ||
working_directory: ~/notes/native | ||
docker: | ||
- image: circleci/android:api-25-node8-alpha | ||
steps: | ||
- checkout | ||
|
||
- restore_cache: | ||
key: node-native-v1-{{ checksum "native/package.json" }}-{{ arch }} | ||
|
||
- run: cd native && npm install | ||
|
||
- save_cache: | ||
key: node-native-v1-{{ checksum "native/package.json" }}-{{ arch }} | ||
paths: | ||
- native/node_modules | ||
|
||
- persist_to_workspace: | ||
root: ~/notes/native | ||
paths: | ||
- native/node_modules | ||
|
||
- run: cd native && ./misc/download_keystore.sh | ||
- run: cd native && node ./misc/config-generator.js | ||
- run: cd native && perl -pi -w -e "s/1.0android/1.0android-c$CIRCLE_BUILD_NUM/g;" android/app/build.gradle | ||
|
||
- run: cd native/android && ./gradlew assembleRelease -PMYAPP_RELEASE_STORE_FILE=$MYAPP_RELEASE_STORE_FILE -PMYAPP_RELEASE_KEY_ALIAS=$MYAPP_RELEASE_KEY_ALIAS -PMYAPP_RELEASE_STORE_PASSWORD=$MYAPP_RELEASE_STORE_PASSWORD -PMYAPP_RELEASE_KEY_PASSWORD=$MYAPP_RELEASE_KEY_PASSWORD | ||
- run: mkdir -p /tmp/artifacts-android; | ||
- run: cp native/android/app/build/outputs/apk/release/app-release.apk /tmp/artifacts-android | ||
- run: mv /tmp/artifacts-android/app-release.apk /tmp/artifacts-android/notes-1_0-qa-v$CIRCLE_BUILD_NUM.apk | ||
|
||
- store_artifacts: | ||
path: /tmp/artifacts-android | ||
|
||
workflows: | ||
version: 2 | ||
node-android: | ||
jobs: | ||
- webextension | ||
- android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.