Permalink
Browse files

Removed travis related stuff.

  • Loading branch information...
1 parent 722f2fc commit 353564bbf0e7ce9414e0f6dbb5ad337ab42cf180 @luca-heltai luca-heltai committed Jun 29, 2016
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+exec 2> /dev/null
+EI=0
+
+# If you want to simulate what will be run, just pass echo on the command
+# line.
+PREPEND_COMMANDS="$1"
+
+# The script runs all commands in the before_install and script sections
+# of the .travis.yml file, one time for each env variable set
+
+while ENVSET=`cat .travis.yml | shyaml get-value env.$EI`; do
+ echo $ENVSET
+ eval "$ENVSET"
+ ((EI++))
+ for section in before_install script; do
+ echo ============================================================
+ echo ============================================================
+ echo "Current phase: $section"
+ echo ============================================================
+ echo ============================================================
+ BI=0
+ while CMD=`cat .travis.yml | shyaml get-value $section.$BI`; do
+ ((BI++))
+ echo "Executing: $CMD"
+ echo ============================================================
+ if ! eval "$PREPEND_COMMANDS $CMD"; then
+ echo ************************************************************
+ echo ************************************************************
+ echo "FAILED"
+ echo ************************************************************
+ echo ************************************************************
+ exit 1
+ else
+ echo ============================================================
+ echo "SUCCESS"
+ echo ============================================================
+ fi
+ done
+ done
+done
+
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-# installing cmake
-if [ ! -d $PRG/cmake ]
-then
- echo "-------------------------------------->installing cmake"
- wget --no-check-certificate https://cmake.org/files/v3.5/cmake-3.5.0-rc3-Linux-x86_64.tar.gz
- tar xzf cmake-3.5.0-rc3-Linux-x86_64.tar.gz -C $PRG
- rm cmake-3.5.0-rc3-Linux-x86_64.tar.gz
- mv $PRG/cmake-* $PRG/cmake
-fi
-export PATH=$PRG/cmake/bin:$PATH
-
-
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-# deal2lkit
-echo "-------------------------------------->installing deal2lkit"
-cd $CASA
-DST_INST=$CASA/deal2lkit
-git clone https://github.com/mathlab/deal2lkit.git deal2lkit-src
-cd deal2lkit-src
-mkdir build
-cd build
-cmake \
- -G Ninja \
- -D CMAKE_INSTALL_PREFIX:PATH=$DST_INST-$BUILD_TYPE \
- -D CMAKE_BUILD_TYPE:STRING=$BUILD_TYPE \
- -D D2K_COMPONENT_EXAMPLES:BOOL=OFF \
- -D D2K_COMPONENT_DOCUMENTATION:BOOL=OFF \
- ..
-ninja -j4 install
-cd $CASA
-
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-# dealii
-if [ ! -d $PRG/dealii ]
-then
- echo "-------------------------------------->installing dealii"
- DST_INST=$PRG/dealii
- cd $PRG
- git clone https://github.com/dealii/dealii.git dealii-tmp
- cd dealii-tmp
- mkdir build
- cd build
- cmake \
- -G Ninja \
- -D CMAKE_INSTALL_PREFIX:PATH=$DST_INST \
- -D DEAL_II_WITH_MPI:BOOL=ON \
- -D DEAL_II_WITH_THREADS:BOOL=OFF \
- -D DEAL_II_WITH_P4EST:BOOL=ON \
- .. > $CASA/dealii_cmake.log 2>&1
- cat summary.log
- ninja -j3 -k0 ; ninja -j3 -k0; ninja -j2 -k0 ; ninja -j2 -k0; ninja -j1 -k0 ; ninja -j1
- ninja -j4 install > /dev/null
- cd $PRG
- rm -rf dealii-tmp
- cd $CASA
-fi
-
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-# mpich
-if [ ! -d $PRG/mpich ]
-then
- echo "-------------------------------------->installing mpich"
- mkdir $PRG/mpich-tmp
- cd $PRG/mpich-tmp
- wget --no-check-certificate http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
- tar xvzf mpich-3.2.tar.gz > /dev/null
- mv mpich-3.2 mpich
- cd mpich
- mkdir build && cd build
- ../configure CFLAGS="-w" --prefix=$PRG/mpich --disable-static > /dev/null
- make -j4 install > /dev/null
- cd $PRG
- rm -rf $PRG/mpich-tmp
-fi
-export PATH=$PRG/mpich/bin:$PATH
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-# installing ninja
-if [ ! -d $PRG/ninja ]
-then
- echo "-------------------------------------->installing ninja"
- cd $PRG
- git clone git://github.com/martine/ninja.git
- cd ninja
- git checkout release
- ./configure.py --bootstrap > /dev/null
- cd $CASA
-fi
-export PATH=$PWD/programs/ninja:$PATH
-
-
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-
-# installing numdiff
-if [ ! -d $PRG/numdiff ]
-then
- echo "-------------------------------------->installing numdiff"
- mkdir $PRG/numdiff-tmp
- cd $PRG/numdiff-tmp
- wget http://mirror.lihnidos.org/GNU/savannah/numdiff/numdiff-5.8.1.tar.gz
- tar xzf numdiff-5.8.1.tar.gz
- rm numdiff-5.8.1.tar.gz
- cd numdiff-5.8.1
- DST_INST=$PRG/numdiff
- ./configure --prefix=$DST_INST > /dev/null
- make -j4 install > /dev/null
- cd $CASA
- rm -rf $PRG/numdiff-tmp
-fi
-
-
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-# p4est
-
-if [ ! -d $PRG/p4est ]
-then
- echo "-------------------------------------->installing p4est"
- DST_INST=$PRG/p4est
- cd $PRG
- git clone https://github.com/cburstedde/p4est.git p4est-tmp
- cd p4est-tmp
- git submodule init; git submodule update
- ./bootstrap > /dev/null
- ./configure --enable-mpi --prefix=$DST_INST > /dev/null
- make -j4 > /dev/null
- make install
- cd $CASA
- rm -rf $PRG/p4est-tmp
-fi
-export P4EST_DIR=$PRG/p4est
-
-
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-
-# sundials
-if [ ! -d $PRG/sundials ]
-then
- echo "-------------------------------------->installing sundials"
- DST_INST=$PRG/sundials
- cd $PRG
- wget http://pkgs.fedoraproject.org/repo/extras/sundials/sundials-2.6.2.tar.gz/3deeb0ede9f514184c6bd83ecab77d95/sundials-2.6.2.tar.gz
- tar xzf sundials-2.6.2.tar.gz
- rm sundials-2.6.2.tar.gz
- mv sundials-2.6.2 sundials-tmp
- cd sundials-tmp
- mkdir build
- cd build
-# export PATH=$PRG/cmake/bin:$PATH
- export PATH=$PWD/programs/ninja:$PATH
- cmake \
- -G Ninja \
- -D CMAKE_INSTALL_PREFIX:PATH=$DST_INST \
- -D CXX_ENABLE:BOOL=ON \
- -D MPI_ENABLE:BOOL=ON \
- -D MPI_CC:PATH=$PRG/mpich/bin/mpicc \
- -D MPI_CXX:PATH=$PRG/mpich/bin/mpicxx \
- ..
- ninja -j4 install
- cd $PRG
- rm -rf sundials-tmp
- cd $CASA
-fi
-export SUNDIALS_DIR=$PRG/sundials
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-# trilinos
-if [ ! -d $PRG/trilinos ]
-then
- echo "-------------------------------------->installing trilinos"
- DST_INST=$PRG/trilinos
- export PATH=$PRG/cmake/bin:$PATH
- cd $PRG
- git clone https://github.com/trilinos/trilinos.git trilinos-tmp
- cd trilinos-tmp
- mkdir build
- cd build
- cmake \
- -G Ninja \
- -D CMAKE_BUILD_TYPE:STRING=RELEASE \
- -D TPL_ENABLE_Boost:BOOL=OFF \
- -D TPL_ENABLE_BoostLib:BOOL=OFF \
- -D TPL_ENABLE_MPI:BOOL=ON \
- -D TPL_ENABLE_Netcdf:BOOL=OFF \
- -D CMAKE_INSTALL_PREFIX:PATH=$DST_INST \
- -D Trilinos_ENABLE_OpenMP:BOOL=OFF \
- -D BUILD_SHARED_LIBS:BOOL=ON \
- -D Trilinos_WARNINGS_AS_ERRORS_FLAGS:STRING="" \
- -D CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE \
- -D Trilinos_ASSERT_MISSING_PACKAGES:BOOL=OFF \
- -D Trilinos_ENABLE_TESTS:BOOL=OFF \
- -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \
- -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \
- -D Trilinos_ENABLE_Epetra:BOOL=ON \
- -D Trilinos_ENABLE_NOX:BOOL=ON \
- -D Trilinos_ENABLE_EpetraExt:BOOL=ON \
- -D Trilinos_ENABLE_Tpetra:BOOL=ON \
- -D Trilinos_ENABLE_Kokkos:BOOL=ON \
- -D Trilinos_ENABLE_Sacado:BOOL=ON \
- -D Trilinos_ENABLE_Amesos:BOOL=ON \
- -D Trilinos_ENABLE_AztecOO:BOOL=ON \
- -D Trilinos_ENABLE_Ifpack:BOOL=ON \
- -D Trilinos_ENABLE_Rythmos:BOOL=ON \
- -D Trilinos_ENABLE_Piro:BOOL=ON \
- -D Trilinos_ENABLE_MOOCHO:BOOL=ON \
- -D Trilinos_ENABLE_ML:BOOL=ON \
- -D Trilinos_ENABLE_MueLu:BOOL=ON \
- -D Trilinos_ENABLE_Komplex:BOOL=ON \
- -D Trilinos_ENABLE_Thyra:BOOL=ON \
- -D Trilinos_ENABLE_TrilinosCouplings:BOOL=ON \
- -D Trilinos_ENABLE_Fortran:BOOL=OFF \
- -D CMAKE_CXX_COMPILER:PATH=$PRG/mpich/bin/mpicxx\
- -D CMAKE_C_COMPILER:PATH=$PRG/mpich/bin/mpicc \
- .. > $CASA/trilinos_cmake.log 2>&1
-
- ninja -j3
- ninja -j4 install > /dev/null
- cd $PRG
- rm -rf trilinos-tmp
- cd $CASA
-fi
-
-export TRILINOS_DIR=$PRG/trilinos
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-PRG=$PWD/programs
-CASA=$PWD
-
-
-# trilinos
-if [ ! -d $PRG/trilinos -a ! -d $PRG/dealii ]
-then
- $CASA/scripts/travis/install_trilinos.sh
-else
- if [ ! -d $PRG/dealii ]
- then
- $CASA/scripts/travis/install_dealii.sh
- fi
-fi
-

0 comments on commit 353564b

Please sign in to comment.