forked from CICE-Consortium/Icepack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.38 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
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
- wget
#- lftp
install:
# Fetch Icepack-specific dataset
- "wget https://zenodo.org/record/3728287/files/Icepack_data-20200326.tar.gz &&
tar xvfz Icepack_data-20200326.tar.gz -C ~"
# Mirror entire data folder
#- "lftp ftp://anonymous:travis@travis-ci.org@ftp.cgd.ucar.edu
#-e 'mirror /archive/Model-Data/CICE/ ~/ICEPACK_INPUTDATA; quit'"
script:
# verify icepack.setup --case and icepack.setup --test don't error then run test suite
- "./icepack.setup --case trcase --mach travisCI --env gnu --pes 1x1 -s diag1 && sleep 4"
- "./icepack.setup --test smoke --testid trtest --mach travisCI --env gnu
--pes 1x1 -s diag1 && sleep 4"
- "./icepack.setup --suite travis_suite,io_suite --testid travisCItest
--mach travisCI --env gnu &&
cd testsuite.travisCItest &&
./results.csh"
notifications:
email: false
after_failure:
- "for runlog in $TRAVIS_BUILD_DIR/testsuite.travisCItest/*.travisCItest/logs/icepack.runlog.*; do
echo \"### Contents of $runlog ###\" && cat $runlog; done"
- "git config --global user.email 'travis@travis-ci.org' &&
git config --global user.name 'ciceconsortium' &&
./report_results.csh --travisCI"