47d4882593
* multiple os travis * add coincbc via conda-forge * switch to glpk * circumvent windows subfolder snakemake path issue cf. snakemake/snakemake/#46 * travis: skip solving for windows
26 lines
689 B
YAML
26 lines
689 B
YAML
os:
|
|
- windows
|
|
- linux
|
|
- osx
|
|
|
|
language: bash
|
|
|
|
before_install:
|
|
# install conda
|
|
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
|
|
- source conda4travis.sh
|
|
|
|
# install conda environment
|
|
- conda env create -f ./environment.yaml
|
|
- conda activate pypsa-eur
|
|
|
|
# install open-source solver
|
|
- conda install -c conda-forge ipopt glpk
|
|
|
|
script:
|
|
- cp ./test/config.test1.yaml ./config.yaml
|
|
- snakemake
|
|
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then snakemake solve_all_elec_networks; fi
|
|
- rm -rf resources/*.nc resources/*.geojson resources/*.h5 networks results
|
|
# could repeat for more configurations in future
|