Skip to content

Commit

Permalink
Merge branch 'master' into trampa_synpop
Browse files Browse the repository at this point in the history
# Conflicts:
#	siloCore/pom.xml
#	useCases/munich/src/main/java/de/tum/bgu/msm/io/JobWriterMuc.java
  • Loading branch information
nkuehnel committed Aug 31, 2021
2 parents 90016b9 + a90533c commit 5e865fa
Show file tree
Hide file tree
Showing 237 changed files with 163,373 additions and 149,614 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Java CI

on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]


jobs:
build:
Expand All @@ -9,9 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Cloudsmith Deployment

on:
schedule:
- cron: '0 1 * * 1'



jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn test -DforkMode=always --fail-at-end --batch-mode -Dmatsim.preferLocalDtds=true

- name: Set up Cloudsmith
uses: actions/setup-java@v2
with: # running setup-java again overwrites the settings.xml
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
server-id: msm # Value of the distributionManagement/repository/id field of the pom.xml
server-username: CLOUDSMITH_USERNAME # env variable for username in deploy
server-password: CLOUDSMITH_TOKEN # env variable for token in deploy

- name: Publish to Cloudsmith
run: mvn deploy -DskipTests=true --fail-at-end --batch-mode -Dmatsim.preferLocalDtds=true
env:
CLOUDSMITH_USERNAME: nico-kuhnel
CLOUDSMITH_TOKEN: ${{ secrets.cloudsmithToken }}

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@

![CI status](https://github.com/msmobility/silo/workflows/Java%20CI/badge.svg)
[![Cloudsmith Deployment](https://github.com/msmobility/silo/actions/workflows/deployment.yml/badge.svg?branch=master)](https://github.com/msmobility/silo/actions/workflows/deployment.yml)
[![Hosted By: Cloudsmith](https://img.shields.io/badge/OSS%20hosting%20by-cloudsmith-blue?logo=cloudsmith&style=for-the-badge)](https://cloudsmith.com)

Package repository hosting is graciously provided by [Cloudsmith](https://cloudsmith.com).
Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that
enables your organization to create, store and share packages in any format, to any place, with total
confidence.


# siloCode
Expand All @@ -17,5 +24,3 @@ A possibility is

-----

For a full step-by-step guide of the overall setup, pelase see "SILO-MATSim_Installation.docx" in this directory

186 changes: 5 additions & 181 deletions analysis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,184 +4,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>silo-parent</artifactId>
<groupId>com.github.msmobility</groupId>
<groupId>de.tum.bgu.msm</groupId>
<version>0.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>analysis</artifactId>
<version>0.1.0-SNAPSHOT</version>

<name>SILO analysis module</name>
<version>0.1.0-SNAPSHOT</version>
<description>SILO analysis module</description>
<url>silo.zone</url>
<inceptionYear>2018</inceptionYear>
<licenses>
<license>
<name>GNU General Public License</name>
<url>${basedir}/LICENSE</url>
</license>
</licenses>
<scm>
<url>https://github.com/moeckel/silo</url>
<connection>scm:git:git://github.com/msmobility/silo.git</connection>
<developerConnection>scm:git:[email protected]:msmobility/silo.git</developerConnection>
</scm>
<distributionManagement>
<snapshotRepository>
<id>oss-jfrog-artifactory</id>
<name>artifactory-snapshots</name>
<url>http://oss.jfrog.org/oss-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<build>
<defaultGoal>compiler:compile</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>revision.txt</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>revision.txt</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<revisionOnScmFailure>unknown</revisionOnScmFailure>
<timestampFormat>{0,date,yyyy-MM-dd HH:mm:ss}</timestampFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>8</release>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8</version>
<configuration>
<excludes>
<exclude>**/*$*</exclude> <!-- exclude all inner classes -->
</excludes>

<!--execute each test in separate JVM (slow, but otherwise it does not-->
<!--work, and no problem as long as there are only integration tests):-->
<forkMode>always</forkMode>

<!-- avoid out of memory errors: -->
<argLine>-Xmx2000m -Djava.awt.headless=true

-Dmatsim.preferLocalDtds=true -Dncsa.hdf.hdf5lib.H5.hdf5lib=${hdf5lib-absolute-path}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<skip>${skipTestJar}</skip>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>
<groupId>com.igormaznitsa</groupId>
<artifactId>jute</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<goals>
<goal>jute</goal>
</goals>
<configuration>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>
-->
<plugin>
<!-- Usage (change version numbers, of course) mvn release:prepare -Darguments="-DskipTests
-Pbintray" -DreleaseVersion=0.7.1 -DdevelopmentVersion=0.7.2-SNAPSHOT -B
mvn release:perform -Darguments="-DskipTests -Pbintray" -DreleaseVersion=0.7.1
-DdevelopmentVersion=0.7.2-SNAPSHOT -B -->
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin> <!-- plugin to generate sources, which are used when deploying via jitpack. kai, nov'16 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<configuration>
<quiet>true</quiet>
<header>SILO API</header>
<groups>
<group>
<title>all</title>
<packages>de.tum.bgu.msm:de.tum.bgu.msm.*</packages>
</group>
</groups>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<reporting>
<!-- this plugin generates a html test report -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.8</version>
</plugin>
</plugins>
</reporting>

<dependencies>
<dependency>
Expand All @@ -192,30 +24,22 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.msmobility</groupId>
<groupId>de.tum.bgu.msm</groupId>
<artifactId>siloCore</artifactId>
<version>0.1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.msmobility</groupId>
<groupId>de.tum.bgu.msm</groupId>
<artifactId>munich</artifactId>
<version>0.1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.msmobility</groupId>
<groupId>de.tum.bgu.msm</groupId>
<artifactId>kagawa</artifactId>
<version>0.1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<svnRevision>${buildNumber}</svnRevision>
<geotools.version>21.5</geotools.version>
<skipTestJar>false</skipTestJar> <!--Overridden in the bintray profile-->
<matsimVersion>13.0-2020w37-SNAPSHOT</matsimVersion>
<jackson.version>2.9.5</jackson.version>
</properties>
</project>
12 changes: 1 addition & 11 deletions extensions/matsim2silo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>extensions</artifactId>
<groupId>com.github.msmobility</groupId>
<groupId>de.tum.bgu.msm</groupId>
<version>0.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -16,16 +16,6 @@
<groupId>org.matsim.contrib</groupId>
<artifactId>dvrp</artifactId>
<version>${matsimVersion}</version>
<exclusions>
<exclusion>
<groupId>javax.media</groupId>
<artifactId>jai_core</artifactId>
</exclusion>
<exclusion>
<groupId>jgridshift</groupId>
<artifactId>jgridshift</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.tum.bgu.msm.matsim;

import com.pb.common.matrix.Matrix;
import de.tum.bgu.msm.common.matrix.Matrix;

import de.tum.bgu.msm.properties.Properties;
import org.apache.log4j.Logger;
Expand Down
Loading

0 comments on commit 5e865fa

Please sign in to comment.