-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #730 from JuliaRobotics/ci/github
Converted travis to github ci
- Loading branch information
Showing
8 changed files
with
204 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branch: | ||
- master | ||
- develop | ||
- release** | ||
tags: | ||
- v** | ||
|
||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
JULIA_PKG_SERVER: "" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
- 'nightly' | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Julia | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
|
||
- name: Cache Artifacts | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Julia Build Pkg | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: Git Test Credentials | ||
run: | | ||
git config --global user.name Tester | ||
git config --global user.email [email protected] | ||
- name: Run tests | ||
env: | ||
IIF_TEST: false | ||
DO_CGDFG_TESTS: false | ||
DFG_USE_CGDFG: false | ||
uses: julia-actions/julia-runtest@latest | ||
continue-on-error: ${{ matrix.version == 'nightly' }} | ||
|
||
- name: Process Coverage | ||
uses: julia-actions/julia-processcoverage@v1 | ||
|
||
- name: Code Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: lcov.info | ||
|
||
test-cfg: | ||
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/release**' | ||
name: w/ LGPL ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
JULIA_PKG_SERVER: "" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Julia | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
|
||
- name: Install neo4j | ||
run: | | ||
sudo add-apt-repository -y ppa:openjdk-r/ppa | ||
sudo apt-get update | ||
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add - | ||
echo 'deb https://debian.neo4j.com stable 3.5' | sudo tee /etc/apt/sources.list.d/neo4j.list | ||
sudo apt-get update | ||
apt list -a neo4j | ||
sudo apt-get install neo4j | ||
sudo service neo4j start | ||
sleep 10 | ||
curl -v POST http://neo4j:neo4j@localhost:7474/user/neo4j/password -d"password=test" | ||
# sudo neo4j-admin set-initial-password test | ||
curl -I http://localhost:7474/ | ||
- name: Cache Artifacts | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Julia Build Pkg | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: Git Test Credentials | ||
run: | | ||
git config --global user.name Tester | ||
git config --global user.email [email protected] | ||
- name: Run tests | ||
env: | ||
IIF_TEST: false | ||
DO_CGDFG_TESTS: true | ||
DFG_USE_CGDFG: true | ||
uses: julia-actions/julia-runtest@latest | ||
|
||
- name: Process Coverage | ||
uses: julia-actions/julia-processcoverage@v1 | ||
|
||
- name: Code Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: lcov.info | ||
|
||
docs: | ||
needs: test | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup julia | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: 1.6 | ||
arch: x64 | ||
|
||
- name: Build Docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
run: | | ||
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
julia --project=docs/ docs/make.jl | ||
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
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
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