Skip to content

Commit a6e0072

Browse files
committed
Merge branch 'issue-6946' into 'master'
Issue 6946 - run CI for linux target on appveyor instead of travis-ci See merge request eyeo/adblockplus/libadblockplus!14
2 parents 59d52c3 + b926831 commit a6e0072

2 files changed

Lines changed: 40 additions & 12 deletions

File tree

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ compiler: clang
1111

1212
addons:
1313
apt:
14-
sources:
15-
- 'ubuntu-toolchain-r-test'
1614
packages:
17-
- binutils-gold
18-
- libcurl4-openssl-dev
1915
- p7zip-full
2016

2117
python: '2.7'
@@ -34,6 +30,13 @@ env:
3430
- V8_COMMIT=3cdaf01c4043e19965efc5ef48df5314960b898f ABP_OS_SCRIPT=nix
3531
- V8_COMMIT=3cdaf01c4043e19965efc5ef48df5314960b898f ABP_OS_SCRIPT=android
3632

33+
matrix:
34+
exclude:
35+
- os: linux
36+
env: V8_COMMIT=4fc9a2fe7f8a7ef1e7966185b39b3b541792669a ABP_OS_SCRIPT=nix
37+
- os: linux
38+
env: V8_COMMIT=3cdaf01c4043e19965efc5ef48df5314960b898f ABP_OS_SCRIPT=nix
39+
3740
before_script:
3841
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
3942
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install p7zip; fi

appveyor.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,44 @@ version: 1.0.{build}
22
pull_requests:
33
do_not_increment_build_number: true
44
skip_tags: true
5-
image: Visual Studio 2017
6-
configuration:
7-
- Release
8-
- Debug
9-
platform:
10-
- x64
11-
- Win32
5+
126
clone_depth: 1
7+
138
init:
149
- cmd: echo %Platform% %Configuration%
10+
1511
install:
12+
- sh: sudo apt-get update -qy
13+
- sh: sudo apt-get install -qy clang libc++-dev libc++abi-dev
14+
# hack to figure out the absence of __cxxabi_config.h, required by gtest
15+
# it's fixed in newer versions of libc++abi-dev
16+
# https://ubuntu.pkgs.org/16.04/ubuntu-universe-amd64/libc++abi-dev_3.7.0-1_amd64.deb.html
17+
# https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/libc++abi-dev_6.0-2_amd64.deb.html
18+
- sh: sudo ln -s /usr/include/libcxxabi/__cxxabi_config.h /usr/include/c++/v1/__cxxabi_config.h
1619
- cmd: .appveyor\prepare-prebuilt-v8.cmd
20+
- sh: make get-prebuilt-v8
1721
- cmd: ensure_dependencies.py
22+
- sh: python ensure_dependencies.py
23+
1824
environment:
19-
URL_PREFIX: https://v8.eyeofiles.com/v8-4fc9a2fe7f8a7ef1e7966185b39b3b541792669a/
25+
global:
26+
URL_PREFIX: https://v8.eyeofiles.com/v8-4fc9a2fe7f8a7ef1e7966185b39b3b541792669a/
27+
matrix:
28+
- APPVEYOR_BUILD_WORKER_IMAGE: ubuntu
29+
Configuration: Debug
30+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
31+
platform: x64
32+
Configuration: Release
33+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
34+
platform: x64
35+
Configuration: Debug
36+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
37+
platform: Win32
38+
Configuration: Release
39+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
40+
platform: Win32
41+
Configuration: Debug
42+
2043
before_build:
2144
- cmd: set "GYP_DEFINES=libv8_include_dir=third_party/prebuilt-v8/include libv8_lib_dir=../../third_party/prebuilt-v8 libv8_show_warnings=true"
2245
- cmd: createsolution.bat
@@ -27,8 +50,10 @@ before_build:
2750
2851
build_script:
2952
- cmd: msbuild "build/%arch%/libadblockplus.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
53+
- sh: make
3054
test_script:
3155
- cmd: build\%arch%\%Configuration%\tests.exe --gtest_output=xml:tests.xml
56+
- sh: ./build/out/Debug/tests --gtest_output=xml:tests.xml
3257
after_test:
3358
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml))
3459
deploy: off

0 commit comments

Comments
 (0)