Browse Source

Fix sigal

Dashie der otter 2 months ago
parent
commit
6af4c728d9
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
2 changed files with 9 additions and 5 deletions
  1. 2
    1
      .drone.yml
  2. 7
    4
      gloubiboulga.sh

+ 2
- 1
.drone.yml View File

@@ -10,7 +10,8 @@ pipeline:
10 10
     pull: true
11 11
     commands:
12 12
       - apt update
13
-      - apt install -y python3 python3-pip
13
+      - apt install -y python3 python3-pip python3-dev python3-setuptools libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev tcl8.6-dev tk8.6-dev python-tk
14
+      - pip3 install sigal
14 15
       - ./gloubiboulga.sh
15 16
     when:
16 17
       event: [ push, tag, pull_request ]

+ 7
- 4
gloubiboulga.sh View File

@@ -1,5 +1,4 @@
1 1
 #!/usr/bin/env bash
2
-pip3 install sigal
3 2
 
4 3
 DRONEPATH=/drone/src/dev.sigpipe.me/dashie/minitel
5 4
 
@@ -17,8 +16,12 @@ for vdt in `ls *.vdt`; do
17 16
     cd ${DRONEPATH}/miedit/test
18 17
     echo "VDT: ${DRONEPATH}/vdt/${vdt}"
19 18
     /usr/bin/slimerjs slimerjs-vdt.js ${DRONEPATH}/vdt/${vdt}
20
-    ls
21
-    ls ${DRONEPATH}/vdt/
22
-
23 19
 done
24 20
 
21
+# Move image to out directory
22
+cd ${DRONEPATH}/vdt
23
+mv *.png ${DRONEPATH}/out/
24
+
25
+# Generate gallery
26
+
27
+# Done