Skip to content

Test the pull request for Travis CI #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
# Don't konw whether it can be changed.
# Only for trigger travis ci.

language: c

Expand All @@ -22,6 +23,11 @@ dist: trusty
# see https://github.com/travis-ci/travis-ci/issues/5326
before_install:
- export PATH=$(echo $PATH | sed 's/\/opt\/python[^:]*//g')
# For fold
- export -f travis_nanoseconds
- export -f travis_fold
- export -f travis_time_start
- export -f travis_time_finish

install:
# Install additional packages
Expand All @@ -44,16 +50,37 @@ cache:
- ci/linux-4.13

script:
- if [ ${COVERITY_SCAN_BRANCH} != 1 ];
- echo 'test webgl-stub' && echo -en 'travis_fold:start:build\\r'
- if [ ${COVERITY_SCAN_BRANCH} != 1 ];
then ci/build-all-configs.sh;
fi

- echo -en 'travis_fold:end:build\\r'

addons:
coverity_scan:
project:
name: "siemens/jailhouse"
notification_email: jan.kiszka@siemens.com
name: "beyond/jailhouse"
notification_email: beyond2002@gmail.com
build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/ci/coverity-scan-build.sh
build_command_prepend: "cov-configure --comptype gcc --compiler arm-linux-gnueabihf-gcc --template; cov-configure --comptype gcc --compiler aarch64-linux-gnu-gcc --template"
build_command: "unused"
branch_pattern: coverity_scan.*

# GitHub Pages Deployment
after_success: |
if [ -n "$GITHUB_TOKEN" ]; then
cd "$TRAVIS_BUILD_DIR"
# This generates a `web` directory containing the website.
#mkdir web
#cd web
git init -q
git checkout -b gh-pages
git add . &> /dev/null
git -c user.name='travis' -c user.email='travis' commit -m init
# Make sure to make the output quiet, or else the API token will leak!
# This works because the API key can replace your password.
git push -f -q https://<me>:[email protected]/<me>/<myrepo>-gh-pages gh-pages &2>/dev/null
cd "$TRAVIS_BUILD_DIR"
fi


22 changes: 22 additions & 0 deletions scripts/script_with_folds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

#!/bin/bash

travis_fold() {
local action=$1
local name=$2
echo -en "travis_fold:${action}:${name}\r"
}

travis_fold start foo

echo "This line appears in the fold's 'header'"

echo "Stuff inside"

sleep 2

echo "More stuff"

travis_fold end foo