forked from eric2003/OneFLOW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (68 loc) · 1.81 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: cpp
branches:
only:
- master
- eric
- hexin
cache:
directories:
- openmpi
- openmpi-2.0.1
# setup build matrix
matrix:
include:
- os: linux
arch:
- arm64
- ppc64le
- s390x
dist: trusty
sudo: required
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g -5 gcc-5 libstdc -5-dev
env:
- CXX_COMPILER=g -5
- C_COMPILER=gcc-5
- BUILD_TYPE=release
# upgrade packages
before_install:
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y python3; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y python3; fi
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- which $CXX_COMPILER
# install
install:
- bash ci/travis/installCMAKE
- bash ci/travis/installMPI
- bash ci/travis/installMETIS
- bash ci/travis/installHDF5
- bash ci/travis/installCGNS
before_script:
- mkdir build
- cd build
# build instructions
script:
- export PATH=/usr/bin/:$PATH
- cmake -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER -DAUTO_CI_TEST=ON -DMPI_DIR=$TRAVIS_BUILD_DIR/openmpi ../
- make -j 4
- sudo make install
- pwd
- cd ..
- ls
- cd test
- ls
- ldd /usr/local/bin/OneFLOW
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/openmpi/lib:$LD_LIBRARY_PATH
- sudo ldconfig
- ldd /usr/local/bin/OneFLOW
#- $TRAVIS_BUILD_DIR/openmpi/bin/mpirun -np 1 OneFLOW ./workdir/plateuns2dslau2/
#- $TRAVIS_BUILD_DIR/openmpi/bin/mpirun -np 1 OneFLOW workdir/plateuns2dslau2
#- mpirun -np 1 OneFLOW workdir/plateuns2dslau2
- python3 test.py $TRAVIS_BUILD_DIR/openmpi/bin/ "" linux