Skip to content

Commit 3e668e8

Browse files
author
Vladimir Kotal
committed
put Travis scripts to separate directory
1 parent cd6a9cf commit 3e668e8

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

.travis.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,15 @@ matrix:
1010
jdk: oraclejdk8
1111
- os: osx
1212
osx_image: xcode7.3
13-
before_install:
14-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
15-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8; fi
16-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./scripts/install-bitkeeper.sh; fi
17-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
18-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ctags cvs; fi
19-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install pep8; fi
13+
before_install: scripts/before_install
2014
install: true
21-
22-
before_script:
23-
- if `which bk`; then bk --version; fi
24-
- if `which hg`; then hg --version; fi
25-
- if `which git`; then git --version; fi
26-
- if `which svn`; then svn --version; fi
27-
- if `which cvs`; then cvs --version; fi
28-
- if `which mtn`; then mtn --version; fi
29-
- if `which bzr`; then bzr version; fi
30-
15+
before_script: scripts/before
3116
env:
3217
global:
3318
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
3419
# via the "travis encrypt" command using the project repo's public key
3520
- secure: "O_cda5pWDBAP-O3_0nG5RQ"
36-
3721
script: scripts/main
38-
3922
addons:
4023
coverity_scan:
4124
project:
@@ -44,7 +27,6 @@ addons:
4427
branch_pattern: "coverity_scan"
4528
# build_command_prepend: "mvn clean"
4629
build_command: "mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile"
47-
4830
deploy:
4931
# Pre-release
5032
- provider: releases

scripts/before

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if `which bk`; then bk --version; fi
4+
if `which hg`; then hg --version; fi
5+
if `which git`; then git --version; fi
6+
if `which svn`; then svn --version; fi
7+
if `which cvs`; then cvs --version; fi
8+
if `which mtn`; then mtn --version; fi
9+
if `which bzr`; then bzr version; fi

scripts/before_install

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
4+
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
5+
sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8;
6+
fi
7+
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./scripts/install-bitkeeper.sh; fi
8+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
9+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ctags cvs; fi
10+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install pep8; fi

0 commit comments

Comments
 (0)