]> SALOME platform Git repositories - tools/solverlab.git/blob - CDMATH/.travis.yml
Salome HOME
Corrected syntax error
[tools/solverlab.git] / CDMATH / .travis.yml
1 # This is the configuration file for Travis CI, an online continuous integration service.
2 language: cpp
3 sudo: required
4 dist: trusty
5 addons:
6   apt:
7     packages:
8     - libhdf5-openmpi-dev
9     - libopenmpi-dev
10     - petsc-dev
11     - libcppunit-dev
12
13 before_install:
14   #- export NUM_THREADS=1
15   ## Installation of a newer version of CMake
16   #- wget https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz --no-check-certificate
17   #- tar -zxf cmake-3.3.2-Linux-x86_64.tar.gz
18   #- cmake-3.3.2-Linux-x86_64/bin/cmake --version
19   - cmake --version
20   ## Installation of newer version of HDF5
21   #- wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.14.tar.gz
22   #- tar -zxf hdf5-1.8.14.tar.gz
23   #- cd hdf5-1.8.14
24   #- ./configure
25   #- make -j$NUM_THREADS --silent
26   #- sudo make install -j --silent
27   #- cd ..
28   ## Installation of newer version of OpenMPI
29   #- wget http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.4.tar.gz
30   #- tar -zxf openmpi-1.8.4.tar.gz
31   #- cd openmpi-1.8.4
32   #- ./configure
33   #- make -j$NUM_THREADS --silent
34   #- sudo make install -j --silent
35   #- cd ..
36   - ls -l /usr/include/*mpi*
37   - ls -l /usr/include/openmpi/
38   - sudo ln -s /usr/include/openmpi/mpi-ext.h /usr/include/mpi-ext.h
39   - sudo ln -s /usr/include/openmpi/mpif-common.h /usr/include/mpif-common.h
40   - sudo ln -s /usr/include/openmpi/mpif-config.h /usr/include/mpif-config.h
41   - sudo ln -s /usr/include/openmpi/mpif.h /usr/include/mpif.h
42   - sudo ln -s /usr/include/openmpi/mpif-mpi-io.h /usr/include/mpif-mpi-io.h
43   - sudo ln -s /usr/include/openmpi/mpi.h /usr/include/mpi.h
44   - sudo ln -s /usr/include/openmpi/mpi_portable_platform.h /usr/include/mpi_portable_platform.h
45   - ls -l /usr/include/*mpi*
46   
47 install:
48   - mkdir build
49   - cd build
50   - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCDMATH_WITH_TESTS=ON -DCDMATH_WITH_PETSC=ON ..
51   - make
52   - sudo make install -j --silent
53   - cd ..
54   
55 script:
56   - cd build
57   - make test
58   - cd ..