-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -f /etc/timezone ]; then | ||
echo "Timezone is set to $(cat /etc/timezone)" | ||
else | ||
if [[ -z "${TIMEZONE}" ]]; then | ||
SETUP_TIMEZONE="Europe/Paris" | ||
else | ||
SETUP_TIMEZONE="${TIMEZONE}" | ||
fi | ||
echo "Need to set the timezone" | ||
apk add --no-cache --no-progress tzdata | ||
cp /usr/share/zoneinfo/${SETUP_TIMEZONE} /etc/localtime | ||
echo "${SETUP_TIMEZONE}" > /etc/timezone | ||
apk del tzdata | ||
echo "Timezone is now set to $(cat /etc/timezone)" | ||
fi | ||
cd /var/app | ||
|
||
npm install -g npm | ||
npm install --force --build-from-source | ||
|
||
echo "Container ready to start tests !" | ||
|
||
exec npm run test:functional | ||
echo "Run this via start-ci" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -f /etc/timezone ]; then | ||
echo "Timezone is set to $(cat /etc/timezone)" | ||
else | ||
if [[ -z "${TIMEZONE}" ]]; then | ||
SETUP_TIMEZONE="Europe/Paris" | ||
else | ||
SETUP_TIMEZONE="${TIMEZONE}" | ||
fi | ||
echo "Need to set the timezone" | ||
apk add --no-cache --no-progress tzdata | ||
cp /usr/share/zoneinfo/${SETUP_TIMEZONE} /etc/localtime | ||
echo "${SETUP_TIMEZONE}" > /etc/timezone | ||
apk del tzdata | ||
echo "Timezone is now set to $(cat /etc/timezone)" | ||
fi | ||
cd /var/app | ||
|
||
npm install -g npm | ||
npm install --force --build-from-source | ||
|
||
echo "Container ready to start tests !" | ||
|
||
./features/run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters