try javascript
This commit is contained in:
parent
f7dc0a06de
commit
944f620537
|
@ -12,6 +12,7 @@ install:
|
||||||
script:
|
script:
|
||||||
- xvfb-run mvn clean verify -B -q
|
- xvfb-run mvn clean verify -B -q
|
||||||
- bash ./dependent-projects-trigger.sh $AUTH_TOKEN
|
- bash ./dependent-projects-trigger.sh $AUTH_TOKEN
|
||||||
|
- bash ./upload-javascript.sh $GH_TOKEN
|
||||||
- jdk_switcher use oraclejdk7
|
- jdk_switcher use oraclejdk7
|
||||||
- ./build-maven-jars.py "install -Dgpg.skip"
|
- ./build-maven-jars.py "install -Dgpg.skip"
|
||||||
sudo: false
|
sudo: false
|
||||||
|
@ -20,4 +21,6 @@ cache:
|
||||||
- "$HOME/.m2"
|
- "$HOME/.m2"
|
||||||
- "$TRAVIS_BUILD_DIR/com.ibm.wala.core.testdata/ocaml/ocamljava-2.0-alpha1/lib"
|
- "$TRAVIS_BUILD_DIR/com.ibm.wala.core.testdata/ocaml/ocamljava-2.0-alpha1/lib"
|
||||||
env:
|
env:
|
||||||
secure: KcugjQYnBqeZ7XenZD5QY7jhekVPO0QpQyjDUteLytaokhyRK2g6eNvr/pPerN2uWUvsPwO18P9F+oOupge1cpPZf4cEY8RzLIromyUoRWd6JA0SKciUYdN2kSqnC4uZSJGXeGLoroyEEL4Q2sqimpkbIGxgxYtVniWgJULOyR4=
|
secure:
|
||||||
|
- KcugjQYnBqeZ7XenZD5QY7jhekVPO0QpQyjDUteLytaokhyRK2g6eNvr/pPerN2uWUvsPwO18P9F+oOupge1cpPZf4cEY8RzLIromyUoRWd6JA0SKciUYdN2kSqnC4uZSJGXeGLoroyEEL4Q2sqimpkbIGxgxYtVniWgJULOyR4=
|
||||||
|
- RfbFC/VI0rVv7IAYDwlYathScTuqEEZMpXK7q+6cHiPD3JrW5XCMWTphvUPDmPGc736f/V2rpYp8wMO4PmQkTXy9Eqv7Havcy6x8kEg8JRVE7/0R9TPvI8u9spIYEU4/l5aCADI+wKGza2kBqZY3gOuyVzYrfC5juJSozrfNfbw=
|
||||||
|
|
20
pom.xml
20
pom.xml
|
@ -240,9 +240,27 @@
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.14.1</version>
|
<version>2.14.1</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.10.3</version>
|
||||||
|
<configuration>
|
||||||
|
<aggregate>true</aggregate>
|
||||||
|
<additionalparam>-Xdoclint:none</additionalparam>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>javadoc</id>
|
||||||
|
<goals>
|
||||||
|
<goal>javadoc</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>sonatype-public-repository</id>
|
<id>sonatype-public-repository</id>
|
||||||
<url>https://oss.sonatype.org/content/groups/public</url>
|
<url>https://oss.sonatype.org/content/groups/public</url>
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$TRAVIS_REPO_SLUG" == "wala/WALA" ] &&
|
||||||
|
[ "$TRAVIS_PULL_REQUEST" == "false" ] &&
|
||||||
|
[ "$TRAVIS_BRANCH" == "master" ]; then
|
||||||
|
|
||||||
|
echo -e "Publishing javadoc...\n"
|
||||||
|
|
||||||
|
cd $HOME
|
||||||
|
git config --global user.email "travis@travis-ci.org"
|
||||||
|
git config --global user.name "travis-ci"
|
||||||
|
git clone --quiet https://${GH_TOKEN}@github.com/wala/javadoc > /dev/null
|
||||||
|
|
||||||
|
cd javadoc
|
||||||
|
git rm -rf *
|
||||||
|
cp -Rf $HOME/build/wala/WALA/target/site/apidocs/* .
|
||||||
|
git add -f .
|
||||||
|
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
|
||||||
|
git push > /dev/null
|
||||||
|
|
||||||
|
echo -e "Published Javadoc to gh-pages.\n"
|
||||||
|
|
||||||
|
fi
|
Loading…
Reference in New Issue