From b9211d7ffcedb3ea8e6dd8db529da70cdc906d9e Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Sat, 28 Dec 2019 21:36:00 -0800 Subject: [PATCH] CI with Azure Pipelines (#15403) --- .circleci/config.yml | 13 ------------- azure-pipelines.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 13 deletions(-) delete mode 100755 .circleci/config.yml create mode 100644 azure-pipelines.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100755 index 5f6d6d48d7..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: buildpack-deps:xenial - steps: - - checkout - - run: apt-get -y update - - run: apt install -y ruby gperf flex bison - - run: python ./build.py --confirm --release --silent --jobs 2 - - run: bin/phantomjs --version - - run: ldd bin/phantomjs - - run: python test/run-tests.py --verbose diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..7f76c92f3d --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,40 @@ +jobs: + +- job: 'amd64_linux_gcc' + pool: + vmImage: 'ubuntu-18.04' + steps: + - script: sudo apt-get -y -qq update + displayName: 'apt-get update' + - script: sudo apt install -y g++ cmake qt5-default libqt5webkit5-dev python + displayName: 'Install requirements' + - script: g++ --version && cmake --version && qmake --version && python --version + displayName: 'Display tools version' + - script: ./configure + displayName: 'Run configure script' + - script: make + displayName: 'make' + - script: file ./bin/phantomjs && ./bin/phantomjs --version + displayName: 'Verify executable' + - script: make check + displayName: 'Run the tests' + +- job: 'amd64_linux_clang' + pool: + vmImage: 'ubuntu-18.04' + steps: + - script: sudo apt-get -y -qq update + displayName: 'apt-get update' + - script: sudo apt install -y clang cmake qt5-default libqt5webkit5-dev python + displayName: 'Install requirements' + - script: clang++ --version && cmake --version && qmake --version && python --version + displayName: 'Display tools version' + - script: CC=clang CXX=clang++ ./configure + displayName: 'Run configure script' + - script: make + displayName: 'make' + - script: file ./bin/phantomjs && ./bin/phantomjs --version + displayName: 'Verify executable' + - script: make check + displayName: 'Run the tests' +