Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: .travis.yml

Issue 29498563: Issue 5133 - add CI for libadblockplus (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: use real URLs Created Sept. 26, 2017, 3:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .appveyor/prepare-prebuilt-v8.cmd ('k') | .travis/prepare-prebuilt-v8.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000000000000000000000000000000000..783131e088208dc3cdad66370bc2bd601c248202
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,47 @@
+language: cpp
+
+os:
+ - linux
+ - osx
+
+dist: trusty
+sudo: false
+
+addons:
+ apt:
+ sources:
+ - 'ubuntu-toolchain-r-test'
+ packages:
+ - g++-multilib
+ - binutils-gold
+ - libcurl4-openssl-dev
+ - g++-7
+ - p7zip-full
+
+python: '2.7'
+
+env:
+ global:
+ - URL_PREFIX=https://v8.eyeofiles.com/75b799aaf5f294d484021fe478cb24fa03ae02b4/
+ matrix:
+ - BUILD_ACTION=test
+ - BUILD_ACTION=android_arm ANDROID_NDK_ROOT=${TRAVIS_BUILD_DIR}/third_party/android-ndk-r12b
+ - BUILD_ACTION=android_x86 ANDROID_NDK_ROOT=${TRAVIS_BUILD_DIR}/third_party/android-ndk-r12b
+ - BUILD_ACTION=android_arm64 ANDROID_NDK_ROOT=${TRAVIS_BUILD_DIR}/third_party/android-ndk-r12b
+
+before_script:
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install p7zip; fi
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=g++-7 CC=gcc-7; fi
+ - bash .travis/prepare-prebuilt-v8.sh
+ - sed -i.bak '/third_party\/v8/d' dependencies
+ - ./ensure_dependencies.py
+ - if [[ -n "$ANDROID_NDK_ROOT" && "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip -O third_party/android-ndk.zip ; fi
+ - if [[ -n "$ANDROID_NDK_ROOT" && "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip -O third_party/android-ndk.zip ; fi
+ - if [[ -n "$ANDROID_NDK_ROOT" ]]; then unzip -q third_party/android-ndk.zip -d third_party/ ; fi
+
+script:
+ - make ${BUILD_ACTION} LIBV8_LIB_DIR=../third_party/prebuilt-v8/ LIBV8_INCLUDE_DIR=third_party/prebuilt-v8/include
+
+notifications:
+ email: false
« no previous file with comments | « .appveyor/prepare-prebuilt-v8.cmd ('k') | .travis/prepare-prebuilt-v8.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld