-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.travis.yml
80 lines (64 loc) · 3.25 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
#*******************************************************************************
#.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, 2017-2020
#*******************************************************************************
#System specifications for Travis CI
#*******************************************************************************
matrix:
include:
- os: linux
language: generic
sudo: required
#*******************************************************************************
#Environment variables for different tests on multiple Travis CI workers
#*******************************************************************************
env:
- TST_PUB_DWNL='./tst_pub_dwnl_David_etal_201x_SER.sh' TST_PUB_REPR='./tst_pub_repr_David_etal_201x_SER.sh'
#*******************************************************************************
#Before installing SHBAAM
#*******************************************************************************
before_install:
#-------------------------------------------------------------------------------
#Create .netrc file for secure downloads (users need their own credentials)
#-------------------------------------------------------------------------------
- echo "machine urs.earthdata.nasa.gov login $NETRC_LOGIN_EDATA password $NETRC_PSWRD_EDATA" >> ~/.netrc
- echo "machine podaac-tools.jpl.nasa.gov login $NETRC_LOGIN_PDAAC password $NETRC_PSWRD_PDAAC" >> ~/.netrc
#-------------------------------------------------------------------------------
#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
- which python3
- python3 --version
- python3 -c "import site; print(site.getsitepackages())"
#*******************************************************************************
#Installing SHBAAM
#*******************************************************************************
install:
- wget https://bootstrap.pypa.io/get-pip.py
- sudo python3 get-pip.py --no-cache-dir `grep 'pip==' requirements.pip` `grep 'setuptools==' requirements.pip` `grep 'wheel==' requirements.pip`
- which pip3
- pip3 --version
- sudo pip3 install --no-cache-dir -r requirements.pip
#*******************************************************************************
#Testing SHBAAM
#*******************************************************************************
script:
- cd ./tst/
- echo $TST_PUB_DWNL && $TST_PUB_DWNL
- echo $TST_PUB_REPR && $TST_PUB_REPR
#*******************************************************************************
#End
#*******************************************************************************