This repository has been archived by the owner on Jul 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Another attempt of getting Travis CI to work.
- Loading branch information
Showing
13 changed files
with
130 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,43 @@ | ||
language: cpp | ||
sudo: false | ||
compiler: gcc | ||
# sudo: required | ||
os: linux | ||
# dist: trusty | ||
language: generic | ||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-precise-3.7 | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- clang-3.7 | ||
- g++-5 | ||
|
||
env: | ||
global: | ||
- CC=clang-3.7 | ||
- CXX=clang++-3.7 | ||
matrix: | ||
# - BUILD=Debug | ||
- BUILD=Release | ||
|
||
install: | ||
# Check baseline memory usage; useful to know when OOMs occur | ||
- free | ||
- vmstat | ||
- ps aux --sort=-rss | head -n 10 | ||
|
||
# Run the scripts in scripts/deps/all.sh one at a time. This buys a little | ||
# time, as Travis limits each step here to 50 minutes. | ||
- ./scripts/deps/setup.sh | ||
- ./scripts/deps/ninja.sh | ||
- ./scripts/deps/cmake.sh | ||
- ./scripts/deps/llvm.sh | ||
|
||
before_script: | ||
- ./build/deps.sh | ||
- ./build/run_gyp.sh | ||
env: | ||
- BUILD=Debug | ||
- BUILD=Release | ||
script: ./build/ninja -C out/$BUILD && | ||
./out/$BUILD/bare_tests && | ||
./out/$BUILD/crypto_tests && | ||
./out/$BUILD/monitor_tests | ||
|
||
script: | ||
- ./build/ninja -C out/$BUILD | ||
- ./out/$BUILD/bare_tests | ||
- ./out/$BUILD/crypto_tests | ||
- ./out/$BUILD/monitor_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Submodule cmake
added at
a9e8b1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# | ||
# Sets up the build system dependencies. | ||
|
||
set -o errexit # Stop the script on the first error. | ||
set -o nounset # Catch un-initialized variables. | ||
|
||
# NOTE: All the scripts below also need to be listed in .travis.yml | ||
# We cannot call all.sh directly in .travis.yml, because that would | ||
# exceed the 50-minute time limit for a single build step. | ||
|
||
./scripts/deps/setup.sh | ||
./scripts/deps/ninja.sh | ||
./scripts/deps/cmake.sh | ||
./scripts/deps/llvm.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# | ||
# Builds and symlinks CMake. | ||
|
||
set -o errexit # Stop the script on the first error. | ||
set -o nounset # Catch un-initialized variables. | ||
|
||
mkdir -p build/cmake-build | ||
cd build/cmake-build | ||
../../deps/cmake/bootstrap | ||
make | ||
|
||
cd ../.. | ||
rm -f build/cmake | ||
ln -s "$PWD/build/cmake-build/bin/cmake" build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
# | ||
# Builds and symlinks LLVM. | ||
|
||
set -o errexit # Stop the script on the first error. | ||
set -o nounset # Catch un-initialized variables. | ||
|
||
mkdir -p build/llvm-build | ||
cd build/llvm-build | ||
|
||
# NOTE: CMake's ninja generator barfs if it can't find ninja on the path. | ||
PATH="$PATH:$PWD/../" ../cmake -G "Ninja" \ | ||
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | ||
-DLLVM_ENABLE_RTTI:BOOL=ON \ | ||
-DLLVM_INCLUDE_EXAMPLES:BOOL=OFF \ | ||
-DLLVM_INCLUDE_TESTS:BOOL=OFF \ | ||
-DLLVM_EXTERNAL_CLANG_SOURCE_DIR:PATH="$PWD/../../deps/clang" \ | ||
../../deps/llvm | ||
../ninja | ||
|
||
cd ../.. | ||
rm -f build/llvm | ||
ln -s "$PWD/build/llvm-build/Release+Debug+Asserts/" build/llvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# | ||
# Builds and symlinks Ninja. | ||
|
||
set -o errexit # Stop the script on the first error. | ||
set -o nounset # Catch un-initialized variables. | ||
|
||
# NOTE: Ninja really wants to be built inside its source tree. | ||
cd deps/ninja | ||
|
||
./configure.py --bootstrap | ||
rm -f null.o # NOTE: This gets created for some weird reason. | ||
|
||
cd ../.. | ||
rm -f build/ninja | ||
ln -s "$PWD/deps/ninja/ninja" build/ninja |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
# | ||
# Project-specific setup. | ||
|
||
set -o errexit # Stop the script on the first error. | ||
set -o nounset # Catch un-initialized variables. | ||
|
||
# Check out all the build dependencies stored in Git submodules. | ||
git submodule update --init | ||
|
||
# Symlink build scripts in the build directory. | ||
mkdir -p build/ | ||
ln -s "$PWD/scripts/run_gyp.sh" build/run_gyp.sh |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters