Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add IT test with java project #3

Closed
McFoggy opened this issue Apr 28, 2016 · 0 comments
Closed

add IT test with java project #3

McFoggy opened this issue Apr 28, 2016 · 0 comments
Milestone

Comments

@McFoggy
Copy link
Contributor

McFoggy commented Apr 28, 2016

Snipet for IT test project creation

rm -rf /d/demo-jgitver
mkdir -p /d/demo-jgitver
cd /d/demo-jgitver
mvn archetype:generate -B -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.1 -DgroupId=fr.brouillard.oss -DartifactId=demo-jgitver-java -Dversion=0 -Dpackage=fr.brouillard.oss.demo
cd demo-jgitver-java
mv pom.xml pom.origin.xml
head -n 16 pom.origin.xml > pom.xml
cat >> pom.xml << EOF

    <build>
        <plugins>
            <plugin>
                <groupId>fr.brouillard.oss</groupId>
                <artifactId>jgitver-maven-plugin</artifactId>
                <version>0.0.2-SNAPSHOT</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>

EOF
tail -n 9 pom.origin.xml >> pom.xml
rm pom.origin.xml
echo A > content
git init
git add .
git commit -m "initial commit"
echo B > content && git add -u && git commit -m "added B data"
git tag 1.0 -m "release 1.0"
echo C > content && git add -u && git commit -m "added C data"
git checkout -b cool-feature
echo D > content && git add -u && git commit -m "added D data"
git checkout master
echo E > content && git add -u && git commit -m "added E data"
mvn deploy -DaltDeploymentRepository=repo::default::file:target/repo
@McFoggy McFoggy modified the milestone: No Need Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant