Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 9f7475a

Browse files
authored
Fixing artifact generated by BLT during CI. (#1175)
1 parent ad6c8e5 commit 9f7475a

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@ script:
5454
- blt deploy:build
5555
- source ${BLT_DIR}/scripts/blt/ci/internal/test_artifact.sh
5656

57+
before_deploy:
58+
- cd ${TRAVIS_BUILD_DIR}/../blt-project
59+
# The BLTed8 project will need its ssh_known_hosts configured to push to ACF.
60+
- yaml-cli update:value .travis.yml addons.ssh_known_hosts.0 svn-5223.devcloud.hosting.acquia.com
61+
# Add encrypted SSH key to BLTed8 project.
62+
- yaml-cli update:value .travis.yml before_deploy.0 'openssl aes-256-cbc -K $encrypted_065fa5839cf8_key -iv $encrypted_065fa5839cf8_iv -in id_rsa_blted8.enc -out ~/.ssh/id_rsa -d; chmod 600 ~/.ssh/id_rsa; eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa;'
63+
- cp ${TRAVIS_BUILD_DIR}/id_rsa_blted8.enc .
64+
# Remove the symlink definition for BLT from composer.json and require this specific commit for BLT.
65+
- composer config --unset repositories.blt
66+
- composer require acquia/blt:8.x-dev#${TRAVIS_COMMIT}
67+
- composer update --lock
68+
- echo "[![Build Status](https://travis-ci.org/acquia-pso/blted8.svg?branch=8.x)](https://travis-ci.org/acquia-pso/blted8)" >> README.md
69+
- git add -A
70+
- git commit -m "Automated commit for BLT repo by Travis CI for Build ${TRAVIS_BUILD_ID}" -n
71+
5772
deploy:
5873
- provider: script
5974
# Deploys build artifact for generated `blt-project` to acquia-pso/blted8 on GitHub and also to bolt8 sub on ACF.

scripts/blt/ci/internal/deploy_blted8.sh

-13
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,7 @@ set -ev
44

55
cd ${TRAVIS_BUILD_DIR}/../blt-project
66

7-
# git.remotes already defined in create_blt_project.sh.
8-
yaml-cli update:value .travis.yml addons.ssh_known_hosts.0 svn-5223.devcloud.hosting.acquia.com
9-
yaml-cli update:value .travis.yml before_deploy.0 'openssl aes-256-cbc -K $encrypted_065fa5839cf8_key -iv $encrypted_065fa5839cf8_iv -in id_rsa_blted8.enc -out ~/.ssh/id_rsa -d; chmod 600 ~/.ssh/id_rsa; eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa;'
10-
cp ${TRAVIS_BUILD_DIR}/id_rsa_blted8.enc .
11-
12-
# Remove the symlink definition for BLT from composer.json.
13-
composer config --unset repo.blt
14-
composer require acquia/blt:8.x-dev#${TRAVIS_COMMIT}
15-
composer update --lock
167
git remote add github [email protected]:acquia-pso/blted8.git
17-
echo "[![Build Status](https://travis-ci.org/acquia-pso/blted8.svg?branch=8.x)](https://travis-ci.org/acquia-pso/blted8)" >> README.md
18-
19-
git add -A
20-
git commit -m "Automated commit for BLT repo by Travis CI for Build ${TRAVIS_BUILD_ID}" -n
218
git checkout -b ${TRAVIS_BRANCH}
229
git push github ${TRAVIS_BRANCH} -f
2310

scripts/travis/deploy_branch

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -ev
44

5+
cd ${TRAVIS_BUILD_DIR}/../blt-project
6+
7+
58
blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
69

710
set +v

0 commit comments

Comments
 (0)