-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
22 lines (17 loc) · 923 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sudo: required
language: bash
services:
- docker
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq default-jdk
- docker run inaetics/cagent_builder build_script > cagent_builder.sh && chmod +x cagent_builder.sh
install:
- ./cagent_builder.sh make_bundles
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" &&
git config --global user.name "Travis CI" && git config --global user.email [email protected] &&
git clone https://github.com/INAETICS/bundles.git $TRAVIS_BUILD_DIR/bundles && cd $TRAVIS_BUILD_DIR/bundles &&
git config credential.helper "store --file=.git/credentials" && echo "https://$GITHUB_TOKEN:@github.com" > .git/credentials &&
cp $TRAVIS_BUILD_DIR/deploy/*.jar $TRAVIS_BUILD_DIR/bundles/default-resources &&
git add default-resources/*.jar && git commit -m "build $TRAVIS_REPO_SLUG $TRAVIS_COMMIT" && git push -f