Skip to content

Commit aea0993

Browse files
committed
New deployment strategy
Travis now can deploy the built p2 repository to github pages. This is function is experimental and deploys to a github page that WILL change in the future. Don't build anything critical upon it. Don't say that I didn't warn you. In the meantime this could be used as a source to try the latest release of the plugin.
2 parents f5c78b9 + 49bd988 commit aea0993

File tree

24 files changed

+1063
-460
lines changed

24 files changed

+1063
-460
lines changed

.travis.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,29 @@ dist: trusty
22
install: true
33
language: java
44
jdk:
5-
- oraclejdk8
6-
7-
env: DISPLAY=:99.0
8-
5+
- oraclejdk8
6+
env:
7+
global:
8+
- DISPLAY=:99.0
9+
- secure: hrhXziFxLKT583LkTdvvnXtGLTlSnULBL5SRQKKDZdVWwqlKKWKxIBsFt8alKXDWbJOo8iLkt55nnOMw8mRg1aEfAqQSRDerzO6wBGS1vLgOSf/IAKAw6cWxVIxbJpX/wE0IrwgX+DSeZUjt3hqaVfDt6KxZ24BGISXJBaBpltDJATsayXCgRy5PMJcU4CN7Lxo+WbQ5EQHUV6gQDgZiYtvM5g+V6cunKFbAFJhm9qZGOjR5H8o7YnL1pbzUg2YIEWZ1YyvW/CE4GvbwczsmeR82JKj/dXFg9thy1+2XGXgQUr+jvSK6k0CEXDqNovHbLmDzBhwgEtADJRLC/HRSz1LbSSDAAv/8Gz6oAj3vASFEmy9SO8djSIlP/7cKsklYoCJ9MOeZJWCjkv59BmiiohreazJqjcCBXHeeSCoVoNkCbihPGyx1yD7J5w4oFnKomfVoQ0MbKQFSTyEdbRaz6TVjqEvu8jLuAF5DpitSGbTDN7TDw20yl9H6tUJv73PBTqzNkUBF7y4QPpQlin9uMQLELKh2zI2oGswwuC/YDGYtyUbe8fNsNmkYKwRCpisLpOtWrDGtUTBZUBNIZiKF5QdRUpqlWEKbClJBhtMMHDAheDCabneF3WHyNW6hZllCx2Y0yRf7MNG4+ZXySnN9WOGPj3/glovlDI1LJufIppY=
910
before_install:
10-
- sudo apt-get install at-spi2-core
11-
11+
- sudo apt-get install at-spi2-core
1212
before_script:
13-
- sh -e /etc/init.d/xvfb start
14-
- sleep 10 # give xvfb some time to start
15-
13+
- sh -e /etc/init.d/xvfb start
14+
- sleep 10
1615
script: mvn -f mavendeps/pom.xml p2:site && mvn clean verify
17-
1816
after_failure:
19-
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/work/data/.metadata/.log
20-
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/surefire-reports/*
21-
17+
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/work/data/.metadata/.log
18+
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/surefire-reports/*
19+
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.unit.tests/target/surefire-reports/*
20+
deploy:
21+
provider: pages
22+
skip-cleanup: true
23+
github-token: "$GITHUB_TOKEN"
24+
keep-history: true
25+
local-dir: releng/org.codechecker.eclipse.update/target/repository
26+
repo: vodorok/vodorok.github.io
27+
target-branch: master
28+
verbose: true
29+
on:
30+
tags: true

bundles/org.codechecker.eclipse.plugin/src/org/codechecker/eclipse/plugin/Activator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.codechecker.eclipse.plugin;
22

3-
import org.codechecker.eclipse.plugin.config.CodeCheckerContext;
4-
53
import org.eclipse.cdt.utils.Platform;
64
import org.eclipse.core.runtime.FileLocator;
75
import org.eclipse.core.runtime.IPath;
@@ -73,7 +71,6 @@ public void start(BundleContext context) throws Exception {
7371
ConsoleFactory.consoleWrite("CodeChecker Plugin Started");
7472
super.start(context);
7573

76-
7774
//earlyStartup();
7875
}
7976

bundles/org.codechecker.eclipse.plugin/src/org/codechecker/eclipse/plugin/CodeCheckerNature.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import org.eclipse.core.resources.IProjectNature;
55
import org.eclipse.core.runtime.CoreException;
66

7-
import org.codechecker.eclipse.plugin.config.CcConfiguration;
87
import org.codechecker.eclipse.plugin.config.CodeCheckerContext;
8+
import org.codechecker.eclipse.plugin.config.project.CodeCheckerProject;
99

1010
/**
1111
* Eclipse uses natures as project feature indicators.
@@ -19,9 +19,9 @@ public class CodeCheckerNature implements IProjectNature {
1919

2020
@Override
2121
public void configure() throws CoreException {
22-
CcConfiguration config = new CcConfiguration(project);
23-
config.modifyProjectEnvironmentVariables();
24-
CodeCheckerContext.getInstance().setConfig(project, config);
22+
CodeCheckerProject cCProject = new CodeCheckerProject(project);
23+
cCProject.modifyProjectEnvironmentVariables();
24+
CodeCheckerContext.getInstance().addCodeCheckerProject(cCProject);
2525
}
2626

2727
@Override

0 commit comments

Comments
 (0)