add travis-ci
authorShane Jaroch <nutratracker@protonmail.com>
Mon, 10 Aug 2020 15:39:58 +0000 (11:39 -0400)
committerShane Jaroch <nutratracker@protonmail.com>
Mon, 10 Aug 2020 15:39:58 +0000 (11:39 -0400)
.travis.yml [new file with mode: 0644]
README.rst
sql/init.sql [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..3fd96a1
--- /dev/null
@@ -0,0 +1,10 @@
+dist: xenial
+sudo: true
+language: python
+python:
+- '3.6'
+script:
+- git submodule update --init
+- bash data/setup.sh
+- python data/process.py
+- cd sql && sqlite3 nutra.db ".read init.sql"
index 6287385022d51032dae5630d31dd242d50ec1b81..fd96e8ad3d668f3a7424ab67e65a18cdd29eae00 100644 (file)
@@ -56,6 +56,12 @@ NOTE: FOLLOW STEPS 5 and 6 FROM INSIDE THE SQL SHELL
     .read import.sql
     .exit
 
+Or alternatively from the bash shell (outside SQL)
+
+.. code-block:: bash
+
+    sqlite3 nutra.db -init init.sql
+
 6. Verify the tables (again inside the SQL shell :code:`sqlite nutra.db`),
 
 .. code-block:: sql
diff --git a/sql/init.sql b/sql/init.sql
new file mode 100644 (file)
index 0000000..9039d81
--- /dev/null
@@ -0,0 +1,2 @@
+.read tables.sql
+.read import.sql