Skip to content

Commit

Permalink
Add GHA docker-based CI
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Apr 4, 2020
1 parent c6180f2 commit 45409a3
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 1,031 deletions.
53 changes: 0 additions & 53 deletions .appveyor.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: DockerCI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.3, 1.4]
os: [ubuntu-latest]
python: [ '3.x' ]
project: ['CalibrateEmulateSample']

steps:
- uses: actions/checkout@v2
- name: Build and run Docker image, submit coverage
run: |
docker build . --file Dockerfile --tag ces:PR
docker images
docker run ces:PR
- name: "Generate coverage"
env:
JULIA_PROJECT: "@."
run: julia --project=@. -e 'using Pkg;
cd(Pkg.dir("CalibrateEmulateSample"));
Pkg.add("Coverage");
using Coverage;
LCOV.writefile("coverage-lcov.info", Codecov.process_folder())'
if: success()
- name: "Submit coverage"
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
if: success()

64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ COPY . /CalibrateEmulateSample.jl/

WORKDIR /CalibrateEmulateSample.jl/
RUN julia --project -e "using Pkg; Pkg.instantiate();"
RUN julia --project -e "using CalibrateEmulateSample"
Loading

0 comments on commit 45409a3

Please sign in to comment.