From 1259b1c3bd2a70522fb68fcadb7de81284415f83 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 18:08:06 +0200 Subject: [PATCH] add drone pipeline config --- .drone.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d8152b9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,63 @@ +kind: pipeline +type: docker +name: default + +workspace: + path: /root + +steps: + - name: install + image: ubuntu:latest + pull: if-not-exists + commands: + - echo "source $HOME/trash.sh" > $HOME/.bashrc + - source $HOME/.bashrc + - ls -la $HOME/.trash/ + - type trash + + - name: test trash-empty + depends_on: + - install + image: ubuntu:latest + pull: if-not-exists + commands: + - touch /tmp/testfile{1..4} + - ls -l /tmp/testfile* + - trash /tmp/testfile* + - ls -l /tmp/testfile* + - trash-list + - ls -la $HOME/.trash/ + - trash-empty + - ls -la $HOME/.trash/ + + - name: test trash-restore + depends_on: + - install + image: ubuntu:latest + pull: if-not-exists + commands: + - touch /tmp/testfile{1..4} + - ls -l /tmp/testfile* + - trash /tmp/testfile* + - ls -l /tmp/testfile* + - trash-list + - ls -la $HOME/.trash/ + - trash-restore + - ls -l /tmp/testfile* + - ls -la $HOME/.trash/ + + - name: test trash-rm + depends_on: + - install + image: ubuntu:latest + pull: if-not-exists + commands: + - touch /tmp/testfile{1..4} + - ls -l /tmp/testfile* + - trash /tmp/testfile* + - ls -l /tmp/testfile* + - trash-list + - ls -la $HOME/.trash/ + - trash-rm testfile2 testfile3 + - trash-list + - ls -la $HOME/.trash/ \ No newline at end of file