Commit f181731d authored by Laurent Belcour's avatar Laurent Belcour

[CI] Updating AppVeyor script to perform tests

parent 11919c34
......@@ -14,15 +14,18 @@ install:
before_build:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
# Build script
#
build_script:
# Build first time
- git submodule init
- git submodule update
- scons
# Build externals #
# Build externals
- cd external
# Install CERES #
# Install CERES
- git clone https://ceres-solver.googlesource.com/ceres-solver
- cd ceres-solver
- mkdir build
......@@ -31,9 +34,16 @@ build_script:
- nmake install
- cd ..\..\..
# Rebuild #
- scons -i
# Rebuild
- scons
- appveyor PushArtifact config.log
# Generate product #
# Generate product
- makensis sources\scripts\installer.nsi
- appveyor PushArtifact sources\scripts\ALTA.exe
# Perform custom tests
#
test_script:
- scons tests
......@@ -17,6 +17,7 @@ using namespace alta;
using namespace alta::tests;
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <iostream>
#include <random>
......@@ -34,7 +35,7 @@ int main(int argc, char** argv)
// Testing is Above with Cartesians Configurations
std::uniform_real_distribution<> distribution(-1.0, 1.0);
GENERATOR_TYPE generator( time(NULL) );
GENERATOR_TYPE generator( std::time(NULL) );
vec input_lv(6);
for (unsigned int i = 0; i < NB_TESTS; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment