Skip to content

Commit 12fae7e

Browse files
committed
fix travis config & tests
1 parent 8a86653 commit 12fae7e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ before_deploy:
7474
deploy:
7575
provider: script
7676
on:
77-
repo: osixia/openldap
7877
all_branches: true
7978
script: make push NAME=${NAME} VERSION=${VERSION}-${TARGET_ARCH}
8079

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ build-nocache:
1212
test:
1313
env NAME=$(NAME) VERSION=$(VERSION) bats test/test.bats
1414

15+
tag:
16+
docker tag $(NAME):$(VERSION) $(NAME):$(VERSION)
17+
1518
tag-latest:
1619
docker tag $(NAME):$(VERSION) $(NAME):latest
1720

test/test.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ load test_helper
8383

8484
@test "ldapsearch database with password provided from file" {
8585

86-
rm $PWD/password.txt && touch $PWD/password.txt
87-
echo "strongPassword" >> $PWD/password.txt
86+
echo "strongPassword" > $PWD/password.txt
8887

8988
run_image -h ldap.osixia.net -e LDAP_ADMIN_PASSWORD_FILE=/run/secrets/admin_pw.txt --volume $PWD/password.txt:/run/secrets/admin_pw.txt
9089
wait_process slapd
9190
run docker exec $CONTAINER_ID ldapsearch -x -h ldap.osixia.net -b dc=example,dc=org -ZZ -D "cn=admin,dc=example,dc=org" -w strongPassword
9291
clear_container
92+
9393
rm $PWD/password.txt
9494

9595
[ "$status" -eq 0 ]

test/test_helper.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ stop_container() {
2222
}
2323

2424
remove_container() {
25-
remove_containers_by_cid $CONTAINER_ID
25+
remove_containers_by_cid $CONTAINER_ID
2626
}
2727

2828
clear_container() {

0 commit comments

Comments
 (0)