From 1e95dbcdd4b936949c64d84d47946eeac6d55800 Mon Sep 17 00:00:00 2001 From: Julian Dolby Date: Mon, 24 Jul 2017 14:03:06 +0000 Subject: [PATCH] try to trigger WALA Client --- .travis.yml | 18 +++++++++++------- dependent-projects-trigger.sh | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 dependent-projects-trigger.sh diff --git a/.travis.yml b/.travis.yml index fe9db3352..cd85483e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,15 +5,19 @@ addons: packages: - realpath before_install: - - "git clone --depth=1 https://github.com/secure-software-engineering/DroidBench.git /tmp/DroidBench" +- git clone --depth=1 https://github.com/secure-software-engineering/DroidBench.git + /tmp/DroidBench install: - - mvn clean verify -DskipTests=true -B -q +- mvn clean verify -DskipTests=true -B -q script: - - xvfb-run mvn clean verify -B -q - - jdk_switcher use oraclejdk7 - - ./build-maven-jars.py "install -Dgpg.skip" +- xvfb-run mvn clean verify -B -q +- bash ./dependent-projects-trigger.sh $AUTH_TOKEN +- jdk_switcher use oraclejdk7 +- ./build-maven-jars.py "install -Dgpg.skip" sudo: false cache: directories: - - $HOME/.m2 - - $TRAVIS_BUILD_DIR/com.ibm.wala.core.testdata/ocaml/ocamljava-2.0-alpha1/lib + - "$HOME/.m2" + - "$TRAVIS_BUILD_DIR/com.ibm.wala.core.testdata/ocaml/ocamljava-2.0-alpha1/lib" +env: + secure: KcugjQYnBqeZ7XenZD5QY7jhekVPO0QpQyjDUteLytaokhyRK2g6eNvr/pPerN2uWUvsPwO18P9F+oOupge1cpPZf4cEY8RzLIromyUoRWd6JA0SKciUYdN2kSqnC4uZSJGXeGLoroyEEL4Q2sqimpkbIGxgxYtVniWgJULOyR4= diff --git a/dependent-projects-trigger.sh b/dependent-projects-trigger.sh new file mode 100644 index 000000000..1811cc49a --- /dev/null +++ b/dependent-projects-trigger.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +body='{ +"request": { +"branch":"master" +}}' + +curl -s -X POST \ + -H "Content-Type: application/json" \ + -H "Accept: application/json" \ + -H "Travis-API-Version: 3" \ + -H "Authorization: token $1" \ + -d "$body" \ + https://api.travis-ci.org/repo/wala%2FClient/requests