Skip to content

Commit

Permalink
New deployment strategy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vodorok committed Jul 2, 2019
2 parents f5c78b9 + 49bd988 commit aea0993
Show file tree
Hide file tree
Showing 24 changed files with 1,063 additions and 460 deletions.
35 changes: 22 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@ dist: trusty
install: true
language: java
jdk:
- oraclejdk8

env: DISPLAY=:99.0

- oraclejdk8
env:
global:
- DISPLAY=:99.0
- secure: hrhXziFxLKT583LkTdvvnXtGLTlSnULBL5SRQKKDZdVWwqlKKWKxIBsFt8alKXDWbJOo8iLkt55nnOMw8mRg1aEfAqQSRDerzO6wBGS1vLgOSf/IAKAw6cWxVIxbJpX/wE0IrwgX+DSeZUjt3hqaVfDt6KxZ24BGISXJBaBpltDJATsayXCgRy5PMJcU4CN7Lxo+WbQ5EQHUV6gQDgZiYtvM5g+V6cunKFbAFJhm9qZGOjR5H8o7YnL1pbzUg2YIEWZ1YyvW/CE4GvbwczsmeR82JKj/dXFg9thy1+2XGXgQUr+jvSK6k0CEXDqNovHbLmDzBhwgEtADJRLC/HRSz1LbSSDAAv/8Gz6oAj3vASFEmy9SO8djSIlP/7cKsklYoCJ9MOeZJWCjkv59BmiiohreazJqjcCBXHeeSCoVoNkCbihPGyx1yD7J5w4oFnKomfVoQ0MbKQFSTyEdbRaz6TVjqEvu8jLuAF5DpitSGbTDN7TDw20yl9H6tUJv73PBTqzNkUBF7y4QPpQlin9uMQLELKh2zI2oGswwuC/YDGYtyUbe8fNsNmkYKwRCpisLpOtWrDGtUTBZUBNIZiKF5QdRUpqlWEKbClJBhtMMHDAheDCabneF3WHyNW6hZllCx2Y0yRf7MNG4+ZXySnN9WOGPj3/glovlDI1LJufIppY=
before_install:
- sudo apt-get install at-spi2-core

- sudo apt-get install at-spi2-core
before_script:
- sh -e /etc/init.d/xvfb start
- sleep 10 # give xvfb some time to start

- sh -e /etc/init.d/xvfb start
- sleep 10
script: mvn -f mavendeps/pom.xml p2:site && mvn clean verify

after_failure:
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/work/data/.metadata/.log
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/surefire-reports/*

- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/work/data/.metadata/.log
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.it.tests/target/surefire-reports/*
- cat $TRAVIS_BUILD_DIR/tests/org.codechecker.eclipse.rcp.unit.tests/target/surefire-reports/*
deploy:
provider: pages
skip-cleanup: true
github-token: "$GITHUB_TOKEN"
keep-history: true
local-dir: releng/org.codechecker.eclipse.update/target/repository
repo: vodorok/vodorok.github.io
target-branch: master
verbose: true
on:
tags: true
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.codechecker.eclipse.plugin;

import org.codechecker.eclipse.plugin.config.CodeCheckerContext;

import org.eclipse.cdt.utils.Platform;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
Expand Down Expand Up @@ -73,7 +71,6 @@ public void start(BundleContext context) throws Exception {
ConsoleFactory.consoleWrite("CodeChecker Plugin Started");
super.start(context);


//earlyStartup();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import org.eclipse.core.resources.IProjectNature;
import org.eclipse.core.runtime.CoreException;

import org.codechecker.eclipse.plugin.config.CcConfiguration;
import org.codechecker.eclipse.plugin.config.CodeCheckerContext;
import org.codechecker.eclipse.plugin.config.project.CodeCheckerProject;

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

@Override
public void configure() throws CoreException {
CcConfiguration config = new CcConfiguration(project);
config.modifyProjectEnvironmentVariables();
CodeCheckerContext.getInstance().setConfig(project, config);
CodeCheckerProject cCProject = new CodeCheckerProject(project);
cCProject.modifyProjectEnvironmentVariables();
CodeCheckerContext.getInstance().addCodeCheckerProject(cCProject);
}

@Override
Expand Down
Loading

0 comments on commit aea0993

Please sign in to comment.