Skip to content

Commit

Permalink
Merge pull request #1950 from xuhan425/issue1413_isat_xuhan
Browse files Browse the repository at this point in the history
Issue1413_isat
  • Loading branch information
JayHuLBL authored Nov 5, 2020
2 parents 8195ac0 + 97d5861 commit 8a15e42
Show file tree
Hide file tree
Showing 2,221 changed files with 56,090 additions and 289,603 deletions.
10 changes: 0 additions & 10 deletions .gitattributes

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ funnel_comp
# CMake build directory
######################################
/build
Buildings/Resources/src/fmi-library/build


# Temporary files generated by emacs
Expand Down
92 changes: 24 additions & 68 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: bionic
dist: trusty
sudo: false

language: python

python:
- "3.6"

Expand All @@ -15,34 +15,15 @@ git:

services:
- docker
- xvfb


addons:
apt:
if: env(TEST_ARG) IS /*test-omc*/
sources:
- sourceline: "deb http://build.openmodelica.org/apt `lsb_release -cs` stable"
key_url: "http://build.openmodelica.org/apt/openmodelica.asc"
packages:
- omc=1.16.0-1
- omlib-modelica-3.2.3=3.2.3~20201013~234009~git~OM~maint~3.2.3-1

env:
global:
- ENERGYPLUS_VERSION=EnergyPlus-9.3.0-baff08990c-Linux-x86_64
- MODELICA_JSON_VERSION=6d950c3592fa021aa914ba4ff34a67cbb69962c6
- MODELICA_JSON_HOME=${TRAVIS_BUILD_DIR}/modelica-json

- ENERGYPLUS_VERSION=EnergyPlus-9.2.0-921312fa1d-Linux-x86_64
jobs:
- TEST_ARG="make test-cdl-conformance"
- TEST_ARG="make test-documentation test-experiment-setup test-autogenerated-files test-verify-files test-energyplus-validations"
- TEST_ARG="make test-documentation test-experiment-setup test-autogenerated-files test-verify-files"
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.{Air,Examples}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.{Air,Examples}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.{Air,Examples}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.EnergyPlus\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.EnergyPlus\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.EnergyPlus\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.Detailed.{BaseClasses,Constructions,Examples}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.Detailed.{BaseClasses,Constructions,Examples}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.Detailed.{BaseClasses,Constructions,Examples}\""
Expand All @@ -52,18 +33,12 @@ env:
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.Detailed.Validation.{Initialization,LBNL_71T,TestConditionalConstructions}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.Detailed.Validation.{Initialization,LBNL_71T,TestConditionalConstructions}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.Detailed.Validation.{Initialization,LBNL_71T,TestConditionalConstructions}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.Detailed.FLEXLAB\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.Detailed.FLEXLAB\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.Detailed.FLEXLAB\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.ReducedOrder\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.ReducedOrder\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.ReducedOrder\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.{Applications,Experimental}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.{Applications,Experimental}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.{Applications,Experimental}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.Fluid.{Actuators,BaseClasses,Boilers,Chillers,CHPs,Delays}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.Fluid.{Actuators,BaseClasses,Boilers,Chillers,CHPs,Delays}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.Fluid.{Actuators,BaseClasses,Boilers,Chillers,CHPs,Delays}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.Fluid.{Actuators,BaseClasses,Boilers,Chillers,Delays}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.Fluid.{Actuators,BaseClasses,Boilers,Chillers,Delays}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.Fluid.{Actuators,BaseClasses,Boilers,Chillers,Delays}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.Fluid.{Examples,FMI,FixedResistances,Geothermal}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.Fluid.{Examples,FMI,FixedResistances,Geothermal}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.Fluid.{Examples,FMI,FixedResistances,Geothermal}\""
Expand All @@ -73,6 +48,12 @@ env:
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.Fluid.{MassExchangers,MixingVolumes,Movers,Sensors,SolarCollectors,Sources,Storage,Utilities}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.Fluid.{MassExchangers,MixingVolumes,Movers,Sensors,SolarCollectors,Sources,Storage,Utilities}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.Fluid.{MassExchangers,MixingVolumes,Movers,Sensors,SolarCollectors,Sources,Storage,Utilities}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.Detailed.FLEXLAB\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.Detailed.FLEXLAB\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.Detailed.FLEXLAB\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.ThermalZones.ReducedOrder\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.ThermalZones.ReducedOrder\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.ThermalZones.ReducedOrder\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.Electrical\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.Electrical\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.Electrical\""
Expand All @@ -82,48 +63,35 @@ env:
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.HeatTransfer\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.HeatTransfer\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.HeatTransfer\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.{Obsolete.Controls,Occupants,Media}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.{Obsolete.Controls,Occupants,Media}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.{Obsolete.Controls,Occupants,Media}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.{Obsolete,Occupants,Media}\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.{Obsolete,Occupants,Media}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.{Obsolete,Occupants,Media}\""
- TEST_ARG="make test-dymola PACKAGE=\"Buildings.Utilities\""
- TEST_ARG="make test-optimica PACKAGE=\"Buildings.Utilities\""
- TEST_ARG="make test-jmodelica PACKAGE=\"Buildings.Utilities\""
- TEST_ARG="make test-omc"

before_install:
- sudo apt-get -y install python3.6-minimal # Provides /usr/bin/python3.6m
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- if [[ "$TEST_ARG" == *test-dymola* ]]; then
docker pull "$DOCKER_USERNAME"/travis_ubuntu-1804_dymola:2021-x86_64;
docker pull "$DOCKER_USERNAME"/travis_ubuntu-1804_dymola-2020x-x86_64;
chmod +x Buildings/Resources/Scripts/travis/dymola/dymola;
cp Buildings/Resources/Scripts/travis/dymola/dymola $HOME/bin/;
fi;
- if [[ "$TEST_ARG" == *test-optimica* ]]; then
docker pull "$DOCKER_USERNAME"/travis-ubuntu-1804-optimica:r17595;
docker pull "$DOCKER_USERNAME"/travis-ubuntu-1804-optimica;
chmod +x Buildings/Resources/Scripts/travis/optimica/jm_ipython.sh;
cp Buildings/Resources/Scripts/travis/optimica/jm_ipython.sh $HOME/bin/jm_ipython.sh;
fi;
- if [[ "$TEST_ARG" == *test-jmodelica* ]]; then
docker pull "$DOCKER_USERNAME"/ubuntu-1804_jmodelica_trunk;
chmod +x Buildings/Resources/Scripts/travis/jmodelica/jm_ipython.sh;
cp Buildings/Resources/Scripts/travis/jmodelica/jm_ipython.sh $HOME/bin/jm_ipython.sh;
fi;
- if [[ "$TEST_ARG" == *test-energyplus* ]]; then
wget --no-verbose https://github.com/NREL/EnergyPlus/releases/download/v9.3.0/${ENERGYPLUS_VERSION}.tar.gz;
wget https://github.com/NREL/EnergyPlus/releases/download/v9.2.0/${ENERGYPLUS_VERSION}.tar.gz;
tar xzf ${ENERGYPLUS_VERSION}.tar.gz;
rm ${ENERGYPLUS_VERSION}.tar.gz;
mv -v ${ENERGYPLUS_VERSION}/energyplus ${ENERGYPLUS_VERSION}/EnergyPlus;
file ${ENERGYPLUS_VERSION}/EnergyPlus
ls -l ${ENERGYPLUS_VERSION}
echo "Installed EnergyPlus in ${PWD}/${ENERGYPLUS_VERSION}";
fi;
- if [[ "$TEST_ARG" == *test-cdl-conformance* ]]; then
wget --no-verbose https://github.com/lbl-srg/modelica-json/archive/${MODELICA_JSON_VERSION}.tar.gz;
tar xzf ${MODELICA_JSON_VERSION}.tar.gz;
rm ${MODELICA_JSON_VERSION}.tar.gz;
mv modelica-json-${MODELICA_JSON_VERSION} ${MODELICA_JSON_HOME};
cd ${MODELICA_JSON_HOME};
make install-node-packages;
make compile;
cd -;
echo "Installed modelica-json in ${MODELICA_JSON_HOME}";
cd ${ENERGYPLUS_VERSION};
mv energyplus EnergyPlus;
fi;

# Install dependencies
Expand Down Expand Up @@ -152,20 +120,8 @@ install:
oset==0.1.3 \
PyYAML==5.1.2;
fi;
- if [[ "$TEST_ARG" == *test-energyplus* ]]; then
export PATH=${PATH}:${TRAVIS_BUILD_DIR}/${ENERGYPLUS_VERSION};
pip3 install pandas==1.0.1;
fi;
- pip3 install git+https://github.com/lbl-srg/BuildingsPy@master

# Execute tests
script:
- (cd Buildings/Resources/Scripts/travis && travis_wait 90 $TEST_ARG)

after_failure:
- |
for ff in `find Buildings -maxdepth 1 -name '*.log'`; do
echo "*** Content of $ff"
cat $ff
echo "*** End of $ff"
done
Loading

0 comments on commit 8a15e42

Please sign in to comment.