2020-05-29 07:50:55 +00:00
|
|
|
# SPDX-FileCopyrightText: : 2017-2020 The PyPSA-Eur Authors
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-02-10 11:06:43 +00:00
|
|
|
os:
|
2019-11-07 14:39:23 +00:00
|
|
|
- windows
|
|
|
|
- linux
|
|
|
|
- osx
|
2019-10-28 16:49:18 +00:00
|
|
|
|
2019-11-07 14:39:23 +00:00
|
|
|
language: bash
|
2019-10-28 16:49:18 +00:00
|
|
|
|
2019-11-07 14:39:23 +00:00
|
|
|
before_install:
|
2019-10-28 16:49:18 +00:00
|
|
|
# install conda
|
2019-11-07 14:39:23 +00:00
|
|
|
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
|
|
|
|
- source conda4travis.sh
|
2020-02-10 11:06:43 +00:00
|
|
|
|
2019-10-28 16:49:18 +00:00
|
|
|
# install conda environment
|
2020-09-25 12:08:46 +00:00
|
|
|
- conda install -c conda-forge mamba
|
2020-09-25 12:16:04 +00:00
|
|
|
- mamba env create -f ./environment.yaml
|
2019-10-28 16:49:18 +00:00
|
|
|
- conda activate pypsa-eur
|
2020-02-10 11:06:43 +00:00
|
|
|
|
2019-10-28 16:49:18 +00:00
|
|
|
# install open-source solver
|
2020-09-25 13:18:59 +00:00
|
|
|
- mamba install -c conda-forge glpk ipopt
|
2020-09-25 12:08:46 +00:00
|
|
|
|
|
|
|
# list packages for easier debugging
|
|
|
|
- conda list
|
2019-10-28 16:49:18 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cp ./test/config.test1.yaml ./config.yaml
|
2020-03-17 13:55:30 +00:00
|
|
|
- snakemake -j all solve_all_elec_networks
|
2019-10-28 16:49:18 +00:00
|
|
|
- rm -rf resources/*.nc resources/*.geojson resources/*.h5 networks results
|
|
|
|
# could repeat for more configurations in future
|