summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnanmay Suri2021-04-22 16:01:59 +0530
committerGitHub2021-04-22 16:01:59 +0530
commit540c02f594fe49e47828a589115f282f95304b72 (patch)
treea29484d05688642cb61bb7ced21e601a3be969da
parent20085f1e0c1629b76f4f56a22ce74028148a1dc7 (diff)
parentfd3cbdf88e942c8ac4284ab401b598e83ce272da (diff)
downloadfossee-scilab-octave-toolbox-540c02f594fe49e47828a589115f282f95304b72.tar.gz
fossee-scilab-octave-toolbox-540c02f594fe49e47828a589115f282f95304b72.tar.bz2
fossee-scilab-octave-toolbox-540c02f594fe49e47828a589115f282f95304b72.zip
Merge pull request #2 from KRIXUS-alpha/master
configured travisCI [build monitored manually]
-rw-r--r--.travis.yml20
-rw-r--r--src/make.sh12
-rw-r--r--tests/test.sce3
3 files changed, 28 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index e6dfbfb..1bf2494 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,20 @@
-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
- - tar -xf scilab_6.0.1-1ubuntu1.debian.tar.xz
- - bash scilab_6.0.1-1ubuntu1.debian/scilab.install
+# - wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/scilab/6.0.1-1ubuntu1/scilab_6.0.1-1ubuntu1.debian.tar.xz
+# - tar -xf scilab_6.0.1-1ubuntu1.debian.tar.xz
+# - bash debian/scilab.install
+ - sudo apt-get install scilab
- 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..096275d
--- /dev/null
+++ b/src/make.sh
@@ -0,0 +1,12 @@
+#!/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 -i '37d' ./builder.sce
+sed -i '40,41d' ./builder.sce
diff --git a/tests/test.sce b/tests/test.sce
index e2c0ca1..b3a7993 100644
--- a/tests/test.sce
+++ b/tests/test.sce
@@ -1,3 +1,6 @@
+exec builder.sce
+exec loader.sce
+
//exec build.sce
test_pass=[]