Commit bdafcaf1 by Edward Thomson Committed by Patrick Steinhardt

ci: move travis to the new scripts

(cherry picked from commit 24b8dd82)
parent 60f5d780
...@@ -16,9 +16,10 @@ env: ...@@ -16,9 +16,10 @@ env:
global: global:
- secure: "YnhS+8n6B+uoyaYfaJ3Lei7cSJqHDPiKJCKFIF2c87YDfmCvAJke8QtE7IzjYDs7UFkTCM4ox+ph2bERUrxZbSCyEkHdjIZpKuMJfYWja/jgMqTMxdyOH9y8JLFbZsSXDIXDwqBlC6vVyl1fP90M35wuWcNTs6tctfVWVofEFbs=" - secure: "YnhS+8n6B+uoyaYfaJ3Lei7cSJqHDPiKJCKFIF2c87YDfmCvAJke8QtE7IzjYDs7UFkTCM4ox+ph2bERUrxZbSCyEkHdjIZpKuMJfYWja/jgMqTMxdyOH9y8JLFbZsSXDIXDwqBlC6vVyl1fP90M35wuWcNTs6tctfVWVofEFbs="
- GITTEST_INVASIVE_FS_SIZE=1 - GITTEST_INVASIVE_FS_SIZE=1
- SKIP_APT=1
matrix: matrix:
- OPTIONS="-DTHREADSAFE=ON -DENABLE_TRACE=ON -DCMAKE_BUILD_TYPE=Release" - CMAKE_OPTIONS="-DTHREADSAFE=ON -DENABLE_TRACE=ON -DCMAKE_BUILD_TYPE=Release"
- OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON" - CMAKE_OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON"
dist: trusty dist: trusty
osx_image: xcode8.3 osx_image: xcode8.3
...@@ -52,21 +53,22 @@ matrix: ...@@ -52,21 +53,22 @@ matrix:
dist: trusty dist: trusty
- compiler: gcc - compiler: gcc
env: env:
- VALGRIND=1 - LEAK_CHECK=valgrind
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DDEBUG_POOL=ON -DCMAKE_BUILD_TYPE=Debug" CMAKE_OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DDEBUG_POOL=ON -DCMAKE_BUILD_TYPE=Debug"
os: linux os: linux
dist: trusty dist: trusty
allow_failures: allow_failures:
- env: COVERITY=1 - env: COVERITY=1
install: install:
- if [ -f ./script/install-deps-${TRAVIS_OS_NAME}.sh ]; then ./script/install-deps-${TRAVIS_OS_NAME}.sh; fi - if [ -f ./ci/setup-${TRAVIS_OS_NAME}.sh ]; then ./ci/setup-${TRAVIS_OS_NAME}.sh; fi
# Run the Build script and tests # Run the Build script and tests
script: script:
- script/cibuild.sh - mkdir build
- script/citest.sh - cd build
- script/cileaks.sh - if [ "$COVERITY" ]; then ../ci/coverity.sh; fi
- if [ -z "$COVERITY" ]; then ../ci/build.sh && ../ci/test.sh; fi
# Only watch the development and master branches # Only watch the development and master branches
branches: branches:
......
...@@ -69,7 +69,7 @@ phases: ...@@ -69,7 +69,7 @@ phases:
queue: queue:
name: 'Hosted macOS Preview' name: 'Hosted macOS Preview'
steps: steps:
- bash: . '$(Build.SourcesDirectory)/ci/setup-macos.sh' - bash: . '$(Build.SourcesDirectory)/ci/setup-osx.sh'
displayName: Setup displayName: Setup
- bash: . '$(Build.SourcesDirectory)/ci/build.sh' - bash: . '$(Build.SourcesDirectory)/ci/build.sh'
displayName: Build displayName: Build
......
...@@ -32,14 +32,11 @@ if [ ! -d "$TOOL_BASE" ]; then ...@@ -32,14 +32,11 @@ if [ ! -d "$TOOL_BASE" ]; then
ln -s "$TOOL_DIR" "$TOOL_BASE"/cov-analysis ln -s "$TOOL_DIR" "$TOOL_BASE"/cov-analysis
fi fi
cp script/user_nodefs.h "$TOOL_BASE"/cov-analysis/config/user_nodefs.h cp ../script/user_nodefs.h "$TOOL_BASE"/cov-analysis/config/user_nodefs.h
COV_BUILD="$TOOL_BASE/cov-analysis/bin/cov-build" COV_BUILD="$TOOL_BASE/cov-analysis/bin/cov-build"
# Configure and build # Configure and build
rm -rf _build
mkdir _build
cd _build
cmake .. -DTHREADSAFE=ON cmake .. -DTHREADSAFE=ON
COVERITY_UNSUPPORTED=1 \ COVERITY_UNSUPPORTED=1 \
$COV_BUILD --dir cov-int \ $COV_BUILD --dir cov-int \
......
#!/bin/sh #!/bin/sh
set -e
set -x set -x
apt-get update TMPDIR=${TMPDIR:-/tmp}
apt-get -y install build-essential pkg-config clang cmake openssl libssl-dev libssh2-1-dev libcurl4-gnutls-dev openssh-server
if [ -z "$SKIP_APT" ]; then
apt-get update
apt-get -y install build-essential pkg-config clang cmake openssl libssl-dev libssh2-1-dev libcurl4-gnutls-dev openssh-server
fi
mkdir -p /var/run/sshd mkdir -p /var/run/sshd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment