This repository has been archived by the owner on Mar 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
8a34187
commit 4cf2b0d
Showing
5 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
|
||
# Exclusion | ||
/ci/variables/credentials.yml | ||
/tests/tmp/ |
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,33 @@ | ||
#!/usr/bin/env bats | ||
|
||
#################################################################################### | ||
# Bashlight : 0.2.1 | ||
# Copyright : 2019, MIT | ||
# Author : André Lademann <[email protected]> | ||
# Repository : https://github.com/vergissberlin/bashlight | ||
#################################################################################### | ||
|
||
# @link https://github.com/tkuchiki/bats-travis-ci | ||
|
||
load helper | ||
|
||
BATS_TEST_NAME="Migration test" | ||
BATS_TEST_DESCRIPTION="Test migrations after breaking updates" | ||
TEMP_DIRECTORY=tests/tmp | ||
|
||
setup() { | ||
echo "setup ${BATS_TEST_NAME} ..." >> ./bats.log | ||
mkdir -p ${TEMP_DIRECTORY} | ||
cp -r tests/fixtures/0.2.0/ ${TEMP_DIRECTORY} | ||
} | ||
|
||
teardown() { | ||
echo "teardown ${BATS_TEST_NAME} ..." >> ./bats.log | ||
rm -rf ${TEMP_DIRECTORY} | ||
} | ||
|
||
@test "Migration is needed: returns 1 if migration was successfull" { | ||
skip "Not implemented yet" | ||
# run HOME="$(pwd)/${TEMP_DIRECTORY}" migrate.bash | ||
# $[ ! "$output" = "Migrate installation path from ~/bashlight to ~/.bin/bashlight" ] | ||
} |
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,3 @@ | ||
if [ -f ~/bashlight/bashlight ]; then | ||
. ~/bashlight/bashlight | ||
fi |
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,3 @@ | ||
if [ -f ~/bashlight/bashlight ]; then | ||
. ~/bashlight/bashlight | ||
fi |
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
#################################################################################### | ||
# Bashlight : 0.2.1 | ||
# Copyright : 2019, MIT | ||
# Author : André Lademann <[email protected]> | ||
# Repository : https://github.com/vergissberlin/bashlight | ||
#################################################################################### | ||
|
||
bats ./tests/acceptance/ | ||
shellcheck -x ./bashlight | ||
shellcheck -x ./*.bash | ||
shellcheck -x ./**/*.bash | ||
yamllint . |