This repository was archived by the owner on Oct 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 6
6
include :
7
7
- language : go
8
8
go : 1.8.x
9
- env : TESTFILE= unit.sh
9
+ env : RULE=test- unit
10
10
- language : go
11
11
go : 1.9.x
12
- env : TESTFILE= unit.sh
12
+ env : RULE=test- unit
13
13
- language : go
14
14
go : master
15
- env : TESTFILE= unit.sh
15
+ env : RULE=test- unit
16
16
- language : generic
17
17
sudo : required
18
18
services :
22
22
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
23
23
- sudo apt-get update
24
24
- sudo apt-get -y install docker-ce
25
- env : TESTFILE= integration.sh
25
+ env : RULE=test- integration
26
26
27
27
script :
28
- - ./.travis/$TESTFILE
28
+ - make $RULE
Original file line number Diff line number Diff line change @@ -31,3 +31,13 @@ enable:
31
31
push : clean rootfs create enable
32
32
@echo " ### push plugin ${PLUGIN_NAME} :${PLUGIN_TAG} "
33
33
@docker plugin push ${PLUGIN_NAME} :${PLUGIN_TAG}
34
+
35
+ test : test-unit test-integration
36
+
37
+ test-unit :
38
+ @echo " ### unit tests"
39
+ ./tests/unit.sh
40
+
41
+ test-integration :
42
+ @echo " ### integration tests"
43
+ ./tests/integration.sh
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ TAG=test
15
15
sudo docker pull rastasheep/ubuntu-sshd
16
16
sudo docker pull busybox
17
17
18
- docker build -t sshd .travis/ssh
18
+ docker build -t sshd tests/testdata
19
19
# script
20
20
21
21
# make the plugin
@@ -60,7 +60,7 @@ sudo docker volume rm sshvolume
60
60
61
61
# test5: ssh key
62
62
sudo docker plugin disable vieux/sshfs:$TAG
63
- sudo docker plugin set vieux/sshfs:$TAG sshkey.source=` pwd` /.travis/ssh /
63
+ sudo docker plugin set vieux/sshfs:$TAG sshkey.source=` pwd` /test/testdata /
64
64
sudo docker plugin enable vieux/sshfs:$TAG
65
65
sudo docker volume create -d vieux/sshfs:$TAG -o sshcmd=root@localhost:/ -o port=2222 sshvolume
66
66
sudo docker run --rm -v sshvolume:/write busybox sh -c " echo hello > /write/world"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments