forked from CICE-Consortium/CICE
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
56 lines (46 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
language: cpp
dist: xenial
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- tcsh
- pkg-config
- netcdf-bin libnetcdf-dev libnetcdff-dev
- gfortran
- gcc
- openmpi-bin libopenmpi-dev
- wget
#- lftp
install:
# Fetch CICE grid files and initial conditions
- "wget https://zenodo.org/record/3728358/files/CICE_data_gx3_grid_ic-20200320.tar.gz &&
tar xvfz CICE_data_gx3_grid_ic-20200320.tar.gz -C ~"
# Fetch forcing data
- "wget https://zenodo.org/record/3728362/files/CICE_data_gx3_forcing_NCAR_bulk-20200320.tar.gz &&
tar xvfz CICE_data_gx3_forcing_NCAR_bulk-20200320.tar.gz -C ~"
# Fetch jra55_gx3 forcing data
- "wget https://zenodo.org/record/3728364/files/CICE_data_gx3_forcing_JRA55-20200320.tar.gz &&
tar xvfz CICE_data_gx3_forcing_JRA55-20200320.tar.gz -C ~"
# Mirror entire data folder
#- "lftp ftp://anonymous:[email protected]@ftp.cgd.ucar.edu
#-e 'mirror /archive/Model-Data/CICE/ ~/ICEPACK_INPUTDATA; quit'"
script:
# verify cice.setup --case and cice.setup --test don't error then run test suite
- "./cice.setup --case trcase --mach travisCI --env gnu --pes 2x2 -s diag1 && sleep 4"
- "./cice.setup --test smoke --testid trtest --mach travisCI --env gnu
--pes 2x2 -s diag1 && sleep 4"
- "./cice.setup --suite travis_suite --testid travisCItest
--mach travisCI --env gnu;
cd testsuite.travisCItest &&
./results.csh"
notifications:
email: false
after_failure:
- "for runlog in $TRAVIS_BUILD_DIR/travis_suite.travisCItest/*.travisCItest/logs/cice.runlog.*; do
echo \"### Contents of $runlog ###\" && tail -n 100 $runlog; done"
#- "git config --global user.email '[email protected]' &&
#git config --global user.name 'ciceconsortium' &&
#./report_results.csh --travisCI"