forked from c-h-david/rrr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
103 lines (86 loc) · 4.6 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.
#Author:
#Cedric H. David, 2015-2018
#*******************************************************************************
#System specifications for Travis CI
#*******************************************************************************
sudo: false #Activates the Travis CI container-based infrastructure
language: python #Sets the language to Python
python: #Specifies which versions of Python to be used
- "2.7"
addons:
apt:
packages:
- libhdf5-dev #HDF5 library
- libnetcdf-dev #netCDF library
- netcdf-bin #netCDF binaries
- nco #netCDF Operators
- libgdal-dev #GDAL library
- gdal-bin #GDAL binaries
- libav-tools #Audio/Video tools (avconv is similar to ffmpeg)
- libfreetype6-dev #Freetype library (to render fonts)
- libxml2-dev #XML library
- libxslt1-dev #XSLT library (to convert XMLs)
- libffi-dev #FFI library (Foreign Function Interface)
- libspatialindex-dev #Spatial index library (needed for rtree)
#*******************************************************************************
#Environment variables for different tests on multiple Travis CI workers
#*******************************************************************************
env:
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2015_WRR.sh hydrosheds' TST_PUB_REPR='./tst_pub_repr_David_etal_2015_WRR.sh 1'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2015_WRR.sh rrr' TST_PUB_REPR='./tst_pub_repr_David_etal_2015_WRR.sh 2 5'
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_2015_WRR.sh hydrosheds' TST_PUB_REPR='./tst_pub_repr_David_etal_2015_WRR.sh 6'
- TST_PUB_DWNL='./tst_pub_dwnl_Allen_etal_201x_GGG.sh hydrosheds' TST_PUB_REPR='./tst_pub_repr_Allen_etal_201x_GGG.sh 1'
- TST_PUB_DWNL='./tst_pub_dwnl_Allen_etal_201x_GGG.sh rrr' TST_PUB_REPR='./tst_pub_repr_Allen_etal_201x_GGG.sh 2 4'
- TST_PUB_DWNL='./tst_pub_dwnl_Allen_etal_201x_GGG.sh hydrosheds' TST_PUB_REPR='./tst_pub_repr_Allen_etal_201x_GGG.sh 5'
#*******************************************************************************
#Before installing RRR
#*******************************************************************************
before_install:
#-------------------------------------------------------------------------------
#Creating directory for installation of prerequisites
#-------------------------------------------------------------------------------
- cd $TRAVIS_BUILD_DIR
- mkdir ../installz
- cd ../installz
- export INSTALLZ_DIR=$PWD
#-------------------------------------------------------------------------------
#Installing NCL 6.3.0
#-------------------------------------------------------------------------------
- cd $INSTALLZ_DIR
- wget "https://www.earthsystemgrid.org/dataset/ncl.630.1/file/ncl_ncarg-6.3.0.Linux_Debian6.0_x86_64_nodap_gcc445.tar.gz"
- mkdir ncl_ncarg-6.3.0-install
- ls
- tar -xf ncl_ncarg-6.3.0.Linux_Debian6.0_x86_64_nodap_gcc445.tar.gz --directory=ncl_ncarg-6.3.0-install
#-------------------------------------------------------------------------------
#Exporting environment variables
#-------------------------------------------------------------------------------
- export NCARG_ROOT=$INSTALLZ_DIR/ncl_ncarg-6.3.0-install/
#-------------------------------------------------------------------------------
#Exporting directories with library-related executables to $PATH
#-------------------------------------------------------------------------------
- export PATH=$PATH:/$NCARG_ROOT/bin
#*******************************************************************************
#Installing RRR
#*******************************************************************************
install:
- cd $TRAVIS_BUILD_DIR
- pip install -r requirements.pip
#*******************************************************************************
#Testing RRR
#*******************************************************************************
script:
- cd $TRAVIS_BUILD_DIR
- cd ./tst/
- echo $TST_PUB_DWNL && $TST_PUB_DWNL
- echo $TST_PUB_REPR && $TST_PUB_REPR
#*******************************************************************************
#End
#*******************************************************************************