use data files is source folder for testing
@@ -16,21 +16,15 @@ build:
requirements:
build:
- {{ compiler('fortran') }}
+ - cmake
host:
- {{ compiler('fortran') }}
test:
+ source_files:
+ - data
commands:
- - test -f $PREFIX/bin/simplecrop
- mkdir output
- - mkdir data
- - cd data
- - curl -O -L https://raw.githubusercontent.com/openmodelingfoundation/SimpleCrop/master/data/irrig.inp
- - curl -O -L https://raw.githubusercontent.com/openmodelingfoundation/SimpleCrop/master/data/plant.inp
- - curl -O -L https://raw.githubusercontent.com/openmodelingfoundation/SimpleCrop/master/data/simctrl.inp
- - curl -O -L https://raw.githubusercontent.com/openmodelingfoundation/SimpleCrop/master/data/soil.inp
- - curl -O -L https://raw.githubusercontent.com/openmodelingfoundation/SimpleCrop/master/data/weather.inp
- - cd ..
- simplecrop
