Skip to content

Commit

Permalink
Setup CI for engine build test (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
  • Loading branch information
bwikbs authored and swift-kim committed Sep 25, 2020
1 parent a9c2e1d commit 2e3a159
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2
jobs:
build_tizen_arm:
working_directory: /home/circleci/engine/src
docker:
- image: art.sec.samsung.net/f-project_docker/engine_build_docker/flutter_engine:latest
environment:
ART_REPO_NAME: f-project_generic/engine
ART_DEPLOY_PATH: flutter/tizen/arm
ART_USERNAME: mh.byun
ART_APIKEY: AKCp5fTttyfJ82EJXUkbjqpoBRZGh2ovZFD9DDZAhBYn1h26Jrbxm3mnrE1egphaaAUyNTrWq
no_proxy: 10.252.240.232,10.113.164.251,10.113.164.242
steps:
- run: curl -sL https://art.sec.samsung.net/artifactory/tools/CircleCI/scripts/set_proxy_setting.sh | sh
- checkout:
path: /home/circleci/engine/src/flutter
- run: gclient sync -D
- run: ./flutter/tools/gn --unopt --target-os linux --linux-cpu arm --target-toolchain /home/circleci/engine/src/third_party/tizen_tools/toolchains --target-sysroot /home/circleci/engine/src/third_party/tizen_tools/sysroot/armel --target-triple armv7l-tizen-linux-gnueabi --runtime-mode debug --embedder-for-target --build-tizen-shell
- run: ninja -C out/linux_debug_unopt_arm/

- store_artifacts:
path: /home/circleci/engine/src/out/linux_debug_unopt_arm/libflutter_linux_tizen.so
- run: ./flutter/tools/gn --unopt --target-os linux --linux-cpu arm --target-toolchain /home/circleci/engine/src/third_party/tizen_tools/toolchains --target-sysroot /home/circleci/engine/src/third_party/tizen_tools/sysroot/armel --target-triple armv7l-tizen-linux-gnueabi --runtime-mode release --embedder-for-target --build-tizen-shell
- run: ninja -C out/linux_release_unopt_arm/
- store_artifacts:
path: /home/circleci/engine/src/out/linux_release_unopt_arm/libflutter_linux_tizen.so
# - run: curl -XGET https://art.sec.samsung.net/artifactory/tools/art/jfrog -L -k > /home/circleci/engine/src/jfrog && chmod u+x /home/circleci/engine/src/jfrog
# - run:
# name: Push so to artifactory
# command: |-
# /home/circleci/engine/src/jfrog rt config --url https://art.sec.samsung.net/artifactory --user ${ART_USERNAME} --password ${ART_APIKEY} --interactive=false
# cd /home/circleci/engine/src/out/linux_debug_unopt_arm
# /home/circleci/engine/src/jfrog rt u ./libflutter_linux_tizen.so ${ART_REPO_NAME}/${ART_DEPLOY_PATH}/debug/ --build-name=${CIRCLE_REPOSITORY_URL} --build-number=${CIRCLE_SHA1} --flat=false
# cd /home/circleci/engine/src/out/linux_release_unopt_arm
# /home/circleci/engine/src/jfrog rt u ./libflutter_linux_tizen.so ${ART_REPO_NAME}/${ART_DEPLOY_PATH}/release/ --build-name=${CIRCLE_REPOSITORY_URL} --build-number=${CIRCLE_SHA1} --flat=false
# /home/circleci/engine/src/jfrog rt bag ${CIRCLE_REPOSITORY_URL} ${CIRCLE_SHA1} $(eval "echo ${CIRCLE_WORKING_DIRECTORY}")
# /home/circleci/engine/src/jfrog rt bp ${CIRCLE_REPOSITORY_URL} ${CIRCLE_SHA1}
workflows:
version: 2
build_All:
jobs:
- build_tizen_arm
1 change: 1 addition & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ allowed_hosts = [

deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'a6c0959d1ac8cdfe6f9ff87892bc4905a73699fe',
'src/third_party/tizen_tools' :'git@github.sec.samsung.net:f-project/tizen_tools.git' + '@' + 'f2d2461da1c0a3192019c475c7210456cb8ec715',

# Fuchsia compatibility
#
Expand Down

0 comments on commit 2e3a159

Please sign in to comment.