forked from c-h-david/rapid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
103 lines (87 loc) · 5.46 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#*******************************************************************************
#.travis.yml
#*******************************************************************************
#Purpose:
#Travis CI is a hosted continuous integration service, that is, it allows
#running code directly from a repository and checking that the code acts as
#expected. The purpose of the .travis.yml file is to give instructions to Travis
#CI on how to do the work.
#Authors:
#Cedric H. David, Alan D. Snow, and Luke A. Winslow, 2015-2020.
#*******************************************************************************
#System specifications for Travis CI
#*******************************************************************************
os: linux
language: shell
#This configuration can be validated at: https://config.travis-ci.com/explore
#*******************************************************************************
#Environment variables for different tests on multiple Travis CI workers
#*******************************************************************************
env:
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_JHM.sh' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_JHM.sh 1 15'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_JHM.sh' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_JHM.sh 16 23'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim1' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 1'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim2' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 2'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim3' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 3'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim4' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 4'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim5' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 5'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim6' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 6'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim7' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 7'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim8' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 8'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim9' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 9'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh sim10' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 10'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh opt' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 11 16'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh opt' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 17 22'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh opt' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 23 82'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_HP.sh opt' TST_PUB_REPR='./tst_pub_repr_David_etal_2011_HP.sh 83 115'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2011_JHM.sh' TST_PUB_REPR='./tst_pub_xtra_David_etal_2011_JHM.sh'
- TST_PUB_DWNL='./tst_pub_dwnl_Emery_etal_2020_JHM2.sh' TST_PUB_REPR='./tst_pub_repr_Emery_etal_2020_JHM2.sh'
#*******************************************************************************
#Before installing RAPID
#*******************************************************************************
before_install:
#-------------------------------------------------------------------------------
#Install operating system dependencies
#-------------------------------------------------------------------------------
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends $(grep -v -E '(^#|^$)' requirements.apt)
#-------------------------------------------------------------------------------
#General environment details
#-------------------------------------------------------------------------------
- apt-get --version
- apt list --installed
#-------------------------------------------------------------------------------
#Creating directory for installation of libraries used by RAPID
#-------------------------------------------------------------------------------
- cd $TRAVIS_BUILD_DIR
- mkdir ../installz
- cd ../installz
- export INSTALLZ_DIR=$PWD
#-------------------------------------------------------------------------------
#Install prerequisites for RAPID
#-------------------------------------------------------------------------------
- cd $TRAVIS_BUILD_DIR
- ./rapid_install_prereqs.sh -i=$INSTALLZ_DIR
#-------------------------------------------------------------------------------
#Exporting environment variables and adding library-related executables to $PATH
#-------------------------------------------------------------------------------
- cd $TRAVIS_BUILD_DIR
- source ./rapid_specify_varpath.sh $INSTALLZ_DIR
#*******************************************************************************
#Installing RAPID
#*******************************************************************************
install:
- cd $TRAVIS_BUILD_DIR
- cd ./src/
- make rapid
#*******************************************************************************
#Testing RAPID
#*******************************************************************************
script:
- cd $TRAVIS_BUILD_DIR
- cd ./tst/
- gfortran -o tst_run_comp tst_run_comp.f90 -I $TACC_NETCDF_INC -L $TACC_NETCDF_LIB -lnetcdff
- gfortran -o tst_run_cerr tst_run_cerr.f90 -I $TACC_NETCDF_INC -L $TACC_NETCDF_LIB -lnetcdff
- gfortran -o tst_run_conv_Qinit tst_run_conv_Qinit.f90 -I $TACC_NETCDF_INC -L $TACC_NETCDF_LIB -lnetcdff
- echo $TST_PUB_DWNL && $TST_PUB_DWNL
- echo $TST_PUB_REPR && $TST_PUB_REPR