forked from forcedotcom/aura
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zen.yaml
More file actions
76 lines (70 loc) · 4.4 KB
/
.zen.yaml
File metadata and controls
76 lines (70 loc) · 4.4 KB
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
71
72
73
74
75
76
# pipeline_type dictates how Zen will treat your repository.
# maven_docker means this is a Java project that will be built with
# "mvn clean install" in a drone-managed container.
pipeline_type: maven_docker
# for Zen workflow V2
version: 2.0
# These maven profiles, if present in your POM, will be explicitly
# activated by Zen.
# zen-jacoco is not marked active in your POM, so will not be used
# outside of Zen builds.
active_profiles: zen,zen-jacoco
# If the maven build succeeds, a code coverage test is performed using Jacoco.
# If Jacoco determines that the code coverage is less than this percentage, the
# build will be deemed unsuccessful, despite compilation and tests succeeding.
# (A value of zero disables the code coverage step.)
minimum_code_coverage_percentage: 0
# Content between here and the end of the file, while it must be valid YAML,
# is currently read textually by Zen. The order of the sections cannot change.
itest:
codeline: main
modules:
aura:
optional_history_file: null
properties_name: aura.version
ftest_labels: [~ignore,aura.precheckin]
ab_enabled: false
script:
localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
rm -r {node,node_modules} || true
wget --quiet --recursive --no-parent --reject "index.html*" --level=99 http://localhost/node_modules/ || true
wget --quiet --recursive --no-parent --reject "index.html*" --level=99 http://localhost/node/ || true
nodedir="`pwd`/node"
chmod -R 0755 localhost
sudo unmount /dev/shm
sudo mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=512M,tmpfs /dev/shm
mv localhost/* .
cp settings.xml /home/mvn-user/.m2/settings.xml
chown -R mvn-user /home/mvn-user/.m2
chown -R mvn-user $(pwd)
status=0
rm */target/eslint-output || true
sudo -iu mvn-user bash -c "cd $(pwd);mvn pre-clean $MAVEN_ARGS -Dmaven.repo.local=$(pwd)/.m2/repository -Dnode.download.root.url=http://localhost/node/ -Dnpm.download.root.url=http://localhost/npm/ -Deslint.enabled -Peslint || { cat */target/eslint-output; exit 1; }" || export status=$? || true
[ ${status} -eq 0 ] && sudo -iu mvn-user bash -c "cd $(pwd);set -x;export LANG=\"en_US.UTF-8\";${nodedir}/node aura-util/src/test/tools/xUnit/xUnit.js.Console.js /dependency:aura-util/src/test/tools/xUnit/dependencies /strict:false /verbose:false aura-impl/src/test/javascript/ aura-components/src/test/javascript" || export status=$? || true
[ ${status} -eq 0 ] && sudo -iu mvn-user bash -c "cd $(pwd);mvn clean deploy $MAVEN_ARGS -Dmaven.repo.local=$(pwd)/.m2/repository -DaltDeploymentRepository=zen::default::file://$(pwd)/$LOCAL_DEPLOY_DIR -Dnode.download.root.url=http://localhost/node/ -Dchromedriver.download.root.url=http://localhost/chromedriver -Dnpm.download.root.url=http://localhost/npm/ -Deslint.enabled" || export status=$? || true
[ ${status} -eq 0 ] && sudo -iu mvn-user bash -c "cd $(pwd);set -x;export LANG=\"en_US.UTF-8\";mvn verify $MAVEN_ARGS -Dmaven.repo.local=$(pwd)/.m2/repository -DaltDeploymentRepository=zen::default::file://$(pwd)/$LOCAL_DEPLOY_DIR -Dnode.download.root.url=http://localhost/node/ -Dchromedriver.download.root.url=http://localhost/chromedriver -Dnpm.download.root.url=http://localhost/npm/ -Pdesktop -DskipJsDoc -DskipComponentCompile -DskipUnitTests -DrunIntTests -Dwebdriver.browser.type=GOOGLECHROME -Dwebdriver.chrome.nosandbox=true -Dwebdriver.reusebrowser=true -Dwebdriver.timeout=90 -Dwebdriver.timeout.getdriver=30 -DtestThreadCount=3" || export status=$? || true
chown -R $ORIG_UID:$ORIG_UID $(pwd)
exit ${status:-0}
# It is currently required that there be an empty line following the script: section
# Everything from here to the end of the file is used as a .drone.yml file. In the drone
# container, the commands in the script: section will be executed. No Zen-specific content
# can be added.
build:
image: ops0-artifactrepo1-0-prd.data.sfdc.net/aura/aura-build-base:cb4cd61@sha256:3a18286179f891c59f3031199d057cfe71ffb25f14740d3c3649a9b8455c5e15
auth_config:
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
environment:
ORIG_UID: $$UID
MAVEN_ARGS: $$MAVEN_ARGS
LOCAL_DEPLOY_DIR: $$LOCAL_DEPLOY_DIR
extra_hosts:
- external-deps
commands:
- ./.zenbuild.sh
compose:
external-deps:
image: ops0-artifactrepo1-0-prd.data.sfdc.net/aura/aura-build-external-deps:bd6ddb0@sha256:d024d12df6b15324e647cff3c3939082307289bd36f6297085f683c9cdd66871
auth_config:
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD