Skip to content

Commit

Permalink
Initialise project fully before static tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andytson-inviqa committed Feb 18, 2022
1 parent 1015daa commit 1527a4e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions src/symfony/.ci/sample-static/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -o errexit

if ! [ -e symfony.lock ]; then
# ensure a full build is done dynamically to get all repo artifacts
export MY127WS_ENV=local # static tests switch to pipeline
ws harness prepare
ws enable console
ws destroy
fi

ws set app.build 'static'
4 changes: 2 additions & 2 deletions src/symfony/.ci/sample-static/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ workspace('ci-symfony-sample-static'):
description: generated local workspace for ci-symfony-sample.
harness: inviqa/symfony

attribute('app.build'): static

attribute('aws.bucket'): null
attribute('app.repository'): null
attribute('aws.access_key_id'): null
attribute('aws.secret_access_key'): null

attribute('docker.port_forward.enabled'): false

attribute('composer.auth.github'): = decrypt("YTozOntpOjA7czo3OiJkZWZhdWx0IjtpOjE7czoyNDoiZfbsRN210rxOzGyHhH74tuXtFxak6prxIjtpOjI7czo1Njoi7NjB2oXZJ3/wQsccea2VPeYEjU72koVub89ezkdQzAzOaaFwD2Rm1pbhWXR7aYgpUdXmNmO8g5YiO30=")
5 changes: 5 additions & 0 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ function setup()
function prepare_environment()
(
cd "${path_test}"

if [ -e init.sh ]; then
bash -x ./init.sh
fi

ws harness prepare
)

Expand Down

0 comments on commit 1527a4e

Please sign in to comment.