2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00
dotbare/tests/fsetup.bats
2020-05-13 13:23:36 +10:00

14 lines
266 B
Bash
Executable File

#!/usr/bin/env bats
# inital setup in CI/CD pipeline
migrate() {
bash "${BATS_TEST_DIRNAME}"/../dotbare finit -u https://github.com/kazhala/dotfiles.git
}
@test "set up test environment" {
[[ -d "${DOTBARE_DIR}" ]] && skip
migrate
[ "${status}" -eq 0 ]
}