summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml13
-rw-r--r--src/make.sh11
2 files changed, 20 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 45d8955..157def9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
-language: scilab
-dist: bionic
+language: cpp
+dist: focal
before_install:
- sudo apt-get update
# - wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/scilab/6.0.1-1ubuntu1/scilab_6.0.1-1ubuntu1.debian.tar.xz
@@ -9,7 +9,12 @@ before_install:
- sudo apt-get install octave
- sudo apt-get install build-essential
- sudo apt-get install liboctave-dev
+ - sudo apt-get install octave-signal
+
script:
- - octave-cli tests/oct-setup.m
- - scilab -nw -f tests/test.sce
+- cd $TRAVIS_BUILD_DIR/
+- cd src/
+- bash make.sh
+- cd $TRAVIS_BUILD_DIR/
+- scilab-cli -f tests/test.sce
diff --git a/src/make.sh b/src/make.sh
new file mode 100644
index 0000000..dfe2cb4
--- /dev/null
+++ b/src/make.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# build and test the fun library using the makefile at /src
+make clean
+make
+make install
+./testfun
+# test.sce runs in cli mode, no gui prompts allowed while using builder.sce
+# removed the tbx_builder_gateway(toolbox_dir) and tbx_build_localization(toolbox_dir) funciton calls from buider.sce
+
+cd ..
+sed '41,42d' ./builder.sce \ No newline at end of file