Explorar o código

fixing release pushing, added build_examples to travis, fixes #484

Stasik0 %!s(int64=9) %!d(string=hai) anos
pai
achega
f597dc1edc
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 2 1
      tools/travis_linux_script.sh
  2. 2 2
      tools/travis_push_release.sh

+ 2 - 1
tools/travis_linux_script.sh

@@ -65,9 +65,10 @@ cmake -DENABLE_MULTITHREADING=ON -DBUILD_EXAMPLESERVER=ON ..
 make
 make
 cd .. && rm build -rf 
 cd .. && rm build -rf 
 
 
+#this run inclides full examples and methodcalls
 echo "Debug build and unit tests (64 bit)"
 echo "Debug build and unit tests (64 bit)"
 mkdir -p build && cd build
 mkdir -p build && cd build
-cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_DEMO_NODESET=ON -DBUILD_UNIT_TESTS=ON -DBUILD_EXAMPLESERVER=ON -DENABLE_COVERAGE=ON ..
+cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXAMPLES=ON -DENABLE_METHODCALLS=ON -DBUILD_DEMO_NODESET=ON -DBUILD_UNIT_TESTS=ON -DBUILD_EXAMPLESERVER=ON -DENABLE_COVERAGE=ON ..
 make && make test ARGS="-V"
 make && make test ARGS="-V"
 echo "Run valgrind to see if the server leaks memory (just starting up and closing..)"
 echo "Run valgrind to see if the server leaks memory (just starting up and closing..)"
 (valgrind --error-exitcode=3 ./server & export pid=$!; sleep 2; kill -INT $pid; wait $pid);
 (valgrind --error-exitcode=3 ./server & export pid=$!; sleep 2; kill -INT $pid; wait $pid);

+ 2 - 2
tools/travis_push_release.sh

@@ -22,8 +22,8 @@ if [ ! -e "$TAG.zip" ]; then
     cat head.txt rawtable.txt foot.txt > index.html
     cat head.txt rawtable.txt foot.txt > index.html
 
 
     #create a zip for single-file release and copy the files
     #create a zip for single-file release and copy the files
-    cp ../../open62541.c .
-    cp ../../open62541.h .
+    cp ../../../open62541.c .
+    cp ../../../open62541.h .
     zip -r "$TAG.zip" open62541.c open62541.h
     zip -r "$TAG.zip" open62541.c open62541.h
     rm open62541.c
     rm open62541.c
     rm open62541.h
     rm open62541.h