Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing artifact generated by BLT during CI. #1175

Merged
merged 1 commit into from
Mar 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ script:
- blt deploy:build
- source ${BLT_DIR}/scripts/blt/ci/internal/test_artifact.sh

before_deploy:
- cd ${TRAVIS_BUILD_DIR}/../blt-project
# The BLTed8 project will need its ssh_known_hosts configured to push to ACF.
- yaml-cli update:value .travis.yml addons.ssh_known_hosts.0 svn-5223.devcloud.hosting.acquia.com
# Add encrypted SSH key to BLTed8 project.
- 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;'
- cp ${TRAVIS_BUILD_DIR}/id_rsa_blted8.enc .
# Remove the symlink definition for BLT from composer.json and require this specific commit for BLT.
- composer config --unset repositories.blt
- composer require acquia/blt:8.x-dev#${TRAVIS_COMMIT}
- composer update --lock
- echo "[![Build Status](https://travis-ci.org/acquia-pso/blted8.svg?branch=8.x)](https://travis-ci.org/acquia-pso/blted8)" >> README.md
- git add -A
- git commit -m "Automated commit for BLT repo by Travis CI for Build ${TRAVIS_BUILD_ID}" -n

deploy:
- provider: script
# Deploys build artifact for generated `blt-project` to acquia-pso/blted8 on GitHub and also to bolt8 sub on ACF.
Expand Down
13 changes: 0 additions & 13 deletions scripts/blt/ci/internal/deploy_blted8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,7 @@ set -ev

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

# git.remotes already defined in create_blt_project.sh.
yaml-cli update:value .travis.yml addons.ssh_known_hosts.0 svn-5223.devcloud.hosting.acquia.com
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;'
cp ${TRAVIS_BUILD_DIR}/id_rsa_blted8.enc .

# Remove the symlink definition for BLT from composer.json.
composer config --unset repo.blt
composer require acquia/blt:8.x-dev#${TRAVIS_COMMIT}
composer update --lock
git remote add github git@github.com:acquia-pso/blted8.git
echo "[![Build Status](https://travis-ci.org/acquia-pso/blted8.svg?branch=8.x)](https://travis-ci.org/acquia-pso/blted8)" >> README.md

git add -A
git commit -m "Automated commit for BLT repo by Travis CI for Build ${TRAVIS_BUILD_ID}" -n
git checkout -b ${TRAVIS_BRANCH}
git push github ${TRAVIS_BRANCH} -f

Expand Down
3 changes: 3 additions & 0 deletions scripts/travis/deploy_branch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -ev

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


blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"

set +v