Skip to content

Commit 60cbc6e

Browse files
committed
Move bml install into separate script
This should make the .travis.yml file more readable. Signed-off-by: Nicolas Bock <[email protected]>
1 parent 4d1ec05 commit 60cbc6e

File tree

2 files changed

+47
-44
lines changed

2 files changed

+47
-44
lines changed

.travis.yml

Lines changed: 36 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,49 @@
11
language: python
22

33
addons:
4-
apt:
5-
sources:
6-
- ubuntu-toolchain-r-test
7-
- george-edison55-precise-backports
8-
- sourceline: 'ppa:nicolasbock/qmmd'
9-
packages:
10-
- cmake
11-
- cmake-data
12-
- g++-6
13-
- gcc-6
14-
- gfortran-6
15-
- libblas-dev
16-
# - libbml-dev
17-
- liblapack-dev
18-
- libmetis-dev
19-
- libopenmpi-dev
20-
- python
21-
- python3-numpy
22-
- python-numpy
23-
24-
25-
before_install:
26-
- export PROGRESSPATH=`pwd`
27-
- cd; git clone --depth=1 https://github.com/lanl/bml.git
28-
- cd; cd bml; CC=gcc FC=gfortran-6 CMAKE_BUILD_TYPE=Release BLAS_VENDOR=GNU BML_OPENMP=yes BML_TESTING=no ./build.sh configure
29-
- cd; cd bml/build; make; make install
30-
31-
before_script:
32-
- cd; cd $PROGRESSPATH
4+
apt:
5+
sources:
6+
- ubuntu-toolchain-r-test
7+
- george-edison55-precise-backports
8+
- sourceline: 'ppa:nicolasbock/qmmd'
9+
packages:
10+
- cmake
11+
- cmake-data
12+
- g++-6
13+
- gcc-6
14+
- gfortran-6
15+
- libblas-dev
16+
- liblapack-dev
17+
- libmetis-dev
18+
- libopenmpi-dev
19+
- python
20+
- python3-numpy
21+
- python-numpy
3322

3423
env:
3524
- CC=gcc-6 FC=gfortran-6 CXX=g++-6 PROGRESS_GRAPHLIB=no OMP_NUM_THREADS=4 COMMAND=install
36-
- CC=gcc-6 FC=gfortran-6 CXX=g++-6 PROGRESS_GRAPHLIB=yes OMP_NUM_THREADS=4 COMMAND=install
25+
- CC=gcc-6 FC=gfortran-6 CXX=g++-6 PROGRESS_GRAPHLIB=yes OMP_NUM_THREADS=4 COMMAND=install
3726
- CC=gcc-6 FC=gfortran-6 CXX=g++-6 PROGRESS_GRAPHLIB=no OMP_NUM_THREADS=4 COMMAND=testing
3827
- CC=gcc-6 FC=gfortran-6 CXX=g++-6 PROGRESS_GRAPHLIB=yes OMP_NUM_THREADS=4 COMMAND=testing
3928

29+
before_script:
30+
- ./scripts/build-progress.sh
31+
4032
script:
41-
- >
42-
CMAKE_BUILD_TYPE=Debug
43-
PKG_CONFIG_PATH=~/bml/install/lib/pkgconfig
44-
PROGRESS_EXAMPLES=yes
45-
PROGRESS_OPENMP=yes
46-
PROGRESS_TESTING=yes
47-
VERBOSE_MAKEFILE=yes
48-
./build.sh ${COMMAND}
49-
- pushd examples/gpmd
50-
- ./run_test.sh
51-
- popd
52-
- pushd examples/gpmdcov
53-
- OMP_NUM_THREADS=2 ./run.sh 2
54-
- popd
33+
- >
34+
CMAKE_BUILD_TYPE=Debug
35+
PKG_CONFIG_PATH=~/bml/install/lib/pkgconfig
36+
PROGRESS_EXAMPLES=yes
37+
PROGRESS_OPENMP=yes
38+
PROGRESS_TESTING=yes
39+
VERBOSE_MAKEFILE=yes
40+
./build.sh ${COMMAND}
41+
- pushd examples/gpmd
42+
- ./run_test.sh
43+
- popd
44+
- pushd examples/gpmdcov
45+
- OMP_NUM_THREADS=2 ./run.sh 2
46+
- popd
5547

5648
after_success:
5749
- pip install codecov

scripts/build-progress.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -ev
4+
5+
cd ~
6+
git clone --depth=1 https://github.com/lanl/bml.git;
7+
cd bml
8+
CC=gcc-6 FC=gfortran-6 CXX=g++-6 \
9+
CMAKE_BUILD_TYPE=Release BLAS_VENDOR=GNU \
10+
BML_OPENMP=yes BML_TESTING=no \
11+
./build.sh install

0 commit comments

Comments
 (0)