mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
copying the Travis CI setup
This commit is contained in:
parent
d6699f62f0
commit
5477846059
2 changed files with 18 additions and 5 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -29,6 +29,7 @@ jobs:
|
|||
- run: >
|
||||
mvn
|
||||
install
|
||||
jacoco:prepare-agent
|
||||
--define jacoco.skip=false
|
||||
--define maven.javadoc.skip=true
|
||||
--define skipTests=true
|
||||
|
|
@ -38,19 +39,16 @@ jobs:
|
|||
# https://docs.travis-ci.com/user/languages/java/#maven-default-script-command
|
||||
# tests are interdependent and require a specific order
|
||||
# running in parallel causes some tests to fail
|
||||
# - run: mvn test -B # -T 1C
|
||||
- run: mvn test -B # -T 1C
|
||||
|
||||
- env:
|
||||
CI_NAME: github
|
||||
run: >
|
||||
mvn
|
||||
jacoco:prepare-agent
|
||||
test
|
||||
jacoco:report
|
||||
jacoco:report-aggregate
|
||||
verify
|
||||
coveralls:report
|
||||
--no-transfer-progress
|
||||
--define jacoco.skip=false
|
||||
--define repoToken=${{ secrets.GITHUB_TOKEN }}
|
||||
--define pullRequest=${{ github.event.number }}
|
||||
|
|
|
|||
17
.travis.yml
17
.travis.yml
|
|
@ -1,9 +1,24 @@
|
|||
# faster builds
|
||||
git:
|
||||
depth: 3
|
||||
quiet: true
|
||||
submodules: false
|
||||
sudo: false
|
||||
dist: trusty
|
||||
language: java
|
||||
before_install:
|
||||
- echo "MAVEN_OPTS='-Xmx2g'" > ~/.mavenrc
|
||||
- echo "MAVEN_OPTS='-Xmx2g'" > ~/.mavenrc
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.m2
|
||||
install: >
|
||||
mvn
|
||||
install
|
||||
jacoco:prepare-agent
|
||||
--define jacoco.skip=false
|
||||
--define maven.javadoc.skip=true
|
||||
--define skipTests=true
|
||||
--batch-mode
|
||||
--show-version
|
||||
after_success:
|
||||
- mvn jacoco:report jacoco:report-aggregate verify coveralls:report --define jacoco.skip=false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue