Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Travis CI in favor of Azure #5659

Merged
merged 3 commits into from
Nov 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ build / configure:

ci:
- buildenv/jenkins/**/*
- scripts/build-on-travis.sh
- ./.Windows.yml
- ./.travis.yml
- ./azure-pipelines*

cmake:
Expand Down
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ A subset of the labels are documented below.

* [**`ci`**](https://github.com/eclipse/omr/labels/ci) labels are used for
issues and enhancements with the continuous integration system for pull
request testing (e.g., Jenkins, Travis, AppVeyor, etc.)
request testing (e.g., Jenkins, Azure, etc.)

* [**`cmake`**](https://github.com/eclipse/omr/labels/cmake) labels are similar
to build/configure but they apply specifically to the CMake configuration.
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Build Status

| Build | Status |
| ---------------------- | -------------------- |
| Linux x86-64 Lint (Travis) | [![Travis Overall Status](https://api.travis-ci.org/eclipse/omr.svg?branch=master)](https://travis-ci.org/eclipse/omr) |
| Windows x86-64 | [![Windows x86-64 Status](https://ci.eclipse.org/omr/job/Build-win_x86-64/badge/icon)](https://ci.eclipse.org/omr/job/Build-win_x86-64/) |
| Linux x86 | [![Build Status](https://ci.eclipse.org/omr/job/Build-linux_x86/badge/icon)](https://ci.eclipse.org/omr/job/Build-linux_x86/) |
| Linux x86-64 | [![Linux x86-64 Status](https://ci.eclipse.org/omr/job/Build-linux_x86-64/badge/icon)](https://ci.eclipse.org/omr/job/Build-linux_x86-64/) |
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a73c421d9b36141978de47299cbbd83f77c930cc
3b38453e2bafe166aabccbf9a08f5c9dd7146d0a
65 changes: 65 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- script: |
mkdir build
displayName: 'Create build directory'

- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)" | azure-pipelines.cache'
Expand Down Expand Up @@ -153,3 +154,67 @@ jobs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/*results.xml'
displayName: 'Publish results'

- job:
displayName: 'Linter'
pool:
vmImage: 'ubuntu-16.04'
variables:
CCACHE_DIR: $(Pipeline.Workspace)/ccache
CLANG: clang++-3.8
CXX: clang++-3.8
CXX_PATH: clang++-3.8
LLVM_CONFIG: llvm-config-3.8
SPEC: linux_x86-64
PLATFORM: amd64-linux64-gcc
steps:
- script: |
sudo apt-get install -y ccache clang-3.8 libclang-3.8-dev llvm-3.8 llvm-3.8-dev
displayName: 'Install prerequisites'

- script: |
PARALLELISM=$(grep -c '^processor' /proc/cpuinfo)
echo "Number of parallel jobs: $PARALLELISM"
echo "##vso[task.setvariable variable=NUMBER_OF_PROCESSORS]$PARALLELISM"
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: 'Initialize environment'

- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)" | azure-pipelines.cache'
path: $(CCACHE_DIR)
displayName: 'Save/Restore ccache'

- script: |
ccache -s -z
displayName: 'Print cache stats'

- script: |
make -f run_configure.mk OMRGLUE=./example/glue RUN_LINT=yes RUN_BUILD=no HAS_AUTOCONF=1 all
displayName: 'Configure'

- script: |
make -j$NUMBER_OF_PROCESSORS lint
displayName: 'Run linter for x86'
env:
TARGET_ARCH: x
TARGET_SUBARCH: amd64
TARGET_BITS: 64

- script: |
make -j$NUMBER_OF_PROCESSORS lint
displayName: 'Run linter for Power'
env:
TARGET_ARCH: p
TARGET_BITS: 64

- script: |
make -j$NUMBER_OF_PROCESSORS lint
displayName: 'Run linter for z/Architecture'
env:
TARGET_ARCH: z
TARGET_BITS: 64

- script: |
ccache -s -z
displayName: 'Print cache stats'
2 changes: 1 addition & 1 deletion doc/GuideForCommitters.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ objectively, but the committer should verify that each commit contains distinct
changes that should not otherwise be logically squashed with other commits in the
same pull request.

* When commits are pushed to a pull request, TravisCI and Azure builds launch
* When commits are pushed to a pull request, Azure builds launch
automatically to test the changes on x86 Linux, macOS, and Windows platforms.
If the change affects multiple platforms, you must initiate a pull
request build on all affected platforms prior to merging. To launch a pull request
Expand Down
4 changes: 2 additions & 2 deletions fvtest/tril/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ The `test/` directory contains some GTest-based test cases for Tril.
```

3. Build tril using `cmake`. To ensure OMR gets built in a compatible
configuration, we currently reccomend you use the CMake cache that drives
our TravisCI builds.
configuration, we currently recommend you use the CMake cache that drives
our Azure builds.

```sh
mkdir build
Expand Down
42 changes: 0 additions & 42 deletions scripts/build-on-travis.sh

This file was deleted.