68 Commits

Author SHA1 Message Date
Robert Stoll
1ccc1d0c9f switch default branch from master to main 2021-09-21 23:11:16 +02:00
Robert Stoll
87ccc58e50 downgrade back to gradle 6.9 2021-08-10 21:42:38 +02:00
Robert Stoll
144d35c167 replace SubjectProvider with Expect but do not yet remove
we cannot yet remove it because we still have addAssertion on Expect
and if we remove it, would also have one on AssertionContainer. Two
different definitions which would not work together. This also means:
- deprecate addAssertion/addAssertionsCreatedBy/createAndAddAssertion
  in Expect, add append... to AssertionContainer
2021-04-04 21:32:58 +02:00
Robert Stoll
74f111b826 move TODOs to 0.17.0 which we no longer plan for 0.16.0 2021-03-16 22:03:30 +01:00
Robert Stoll
3a1025c8a8 also fix upload for bc and bbc 2021-02-18 14:43:50 +01:00
Robert Stoll
b8389468f4 fix upload coverage, github.refs includes refs/heads 2021-02-18 13:49:39 +01:00
Robert Stoll
89583b458b don't upload coverage for push && branch != master
moreover:
- some small improvements in infix specs
2021-01-10 22:01:00 +01:00
Robert Stoll
3351c63065 do no longer build against jdk 9 we drop support for it 2021-01-09 00:23:34 +01:00
Robert Stoll
3db8cbea93 re-add jacoco coverage to bc and bbc tests
and fix dependency to translations for infix, should also use de_CH in
bc-tests
2021-01-08 23:36:26 +01:00
Robert Stoll
d1fa52871e move bbc tests into bc-tests, remove bc-test
moreover:
- rename TestEngine id from spek2-deprecation to spek2-forgiving
2021-01-08 21:25:29 +01:00
Robert Stoll
7f192ef3d2 introduce bc-tests which compile also specs, setup for 0.14.0
moreover:
- rename DeprecationSpek2TestEngine to Spek2ForgivingTestEngine

bcTests will fail with this commit due to:
- missing `contains all` function in api-infix (a bug)
- StaticName which is internal and not accessible from the new project
2021-01-08 16:54:13 +01:00
Robert Stoll
de3bb30afa change PR title/body in case of automated readme example re-generation
also change the branch name
2020-12-25 01:35:55 +01:00
Robert Stoll
4a1c913056 fix gradle task name to generate the README examples 2020-12-25 01:26:29 +01:00
Robert Stoll
605331176b use with for parameters of github actions 2020-12-25 01:21:14 +01:00
Robert Stoll
6be692684e create PR with generated README examples on master if necessary
moreover:
- indent yml with 2 spaces and format them
- cleanup codecov ignore rules, remove deleted projects
2020-12-25 01:16:24 +01:00
Robert Stoll
5e4cc605a4 deactivate composite build for scala2 api
I will adopt the scala api after all refactorings.
2020-12-25 00:54:46 +01:00
Robert Stoll
6345a9e689 write out bc and bbc in workflows 2020-12-22 15:13:12 +01:00
Robert Stoll
ca0ab970f0 build everything on github actions
Since travis starts to be unreliable with its credit system.
Moreover:
- reduce jdk versions to 9, 11 and 14
- exchange badge in README
2020-12-22 14:39:45 +01:00
Robert Stoll
45d127e118 do no use set-env in samples 2020-11-23 09:37:05 +01:00
Robert Stoll
607ef0d644 run js sample composite build in different project
because of a Windows Server 2019 issue (or at least github action issue)
2020-11-11 23:28:07 +01:00
Robert Stoll
514e6a54c2 remove jasmine sample and turn mocha sample into js sample
It is very unlikely someone uses JS with jasmine as jetbrains has
setup everything with mocha
2020-11-11 22:53:29 +01:00
Robert Stoll
43cacaee88 rename atrium-scala to atrium-scala2 and change package structure
Don't prefix packages with scala but move it after ch.tutteli.atrium.
IMO it is not an extension like kotlin_1_3 and therefore should
not be at the end. Use scala2 as we are likely going to use atrium-scala
for scala 3 once it is out.
2020-10-20 21:33:31 +02:00
Robert Stoll
d2bcc9c665 move check-generateLogic-committed into own workflow due to github bug
Whatever I tried to do so far, as soon as I run one gradle script in
bash, the one in powershell does not behave as it would normally.
Thus moving the check into an own workflow.
The benefit, we only run it if something has changed in the input files
of the generation.
2020-07-01 20:54:44 +02:00
Robert Stoll
46e428f737 use bash to execute check-generateLogic-committed
because powershell seems not to respect the exit code
moreover:
- move to own workflow as it seems to interfere with other steps
- stripIndent() needs to have the same indent as with jdk13+ no longer
  groovy's stripIndent is called but jdk's one
  => see https://issues.apache.org/jira/browse/GROOVY-9423
2020-06-30 23:39:01 +02:00
Robert Stoll
c9bce12630 check generateLogic is committed 2020-06-30 13:44:17 +02:00
Robert Stoll
8583cd652a adjust error message for wrong android.jar sha256 2020-06-19 11:28:34 +02:00
Robert Stoll
b31c4bc490 add a composite build for atrium-scala
in order that this works we have to refactor a bit:
- rename project atrium in directory scala to atrium-scala
  (also rename the directory to atrium-scala)
- rename api project accordingly (i.e. move files)
2020-06-14 21:56:37 +02:00
Robert Stoll
57fbf4fee9 configure codecov to not report before 7 builds 2020-06-08 11:58:02 +02:00
Robert Stoll
cd13c77c7a build samples only if there is a change in the samples 2020-05-29 21:50:59 +02:00
Robert Stoll
bb6605a93e cache only maven, as Kotlin has a bug in case of gradle caching on Win
for more information see https://youtrack.jetbrains.com/issue/KT-39109
2020-05-25 21:44:25 +02:00
assaflei
f0fed2a8fc add caching to github actions 2020-05-21 20:44:34 +02:00
assaflei
a744292ffa add caching to android jar download action during build 2020-05-21 19:40:38 +03:00
Robert Stoll
626fef1d49 use checkout v2 github action 2020-05-16 16:12:04 +02:00
Robert Stoll
81303f0cc1 set kotlin targetCompatibility 13 in case of jdk14
Since 14 is not yet supported
2020-05-16 15:28:31 +02:00
Robert Stoll
d54a66d620 move samples to own workflow build only if there are changes 2020-05-16 14:27:10 +02:00
Robert Stoll
cc10ddfe6a move maven-sample to own machine 2020-05-15 23:47:22 +02:00
Robert Stoll
0cfd17e76f use working-directory instead of sub-shell 2020-05-15 23:43:05 +02:00
Robert Stoll
913bdb4359 active batch mode and do not build jar (only test)
Seems like there is a github actions bug so that the class file is
taken from another environment, maybe we can workaround it by not
building the jar
2020-05-15 20:49:51 +02:00
Robert Stoll
dad0e850d1 build maven sample in CI and mention sample in install maven 2020-05-15 20:21:58 +02:00
Robert Stoll
3b3abbca16 check CI and ATRIUM_ANDROID_JAR is set before generating jars
moreover:
- fail fast in case dexer has output
- add ATRIUM_ANDROID_JAR to the input of checkDexer in subprojects
- use an aboslute path for ATRIUM_ANDROID_JAR
2020-05-08 23:36:24 +02:00
Robert Stoll
d0d01b9596 mention when sha256 check fails and why 2020-05-08 23:36:06 +02:00
Robert Stoll
df3325e04d split download android jar and checkDexer into two steps
This way it will be simpler to skip downloading if we integrate
caching in the future.
2020-05-08 23:36:03 +02:00
Robert Stoll
973fef7062 no need to define CI=true env, already set by GitHub 2020-05-08 23:22:37 +02:00
Robert Stoll
c8b2585714 do not define ATRIUM_ANDROID_JAR for samples-test, not required 2020-05-08 23:22:33 +02:00
assaflei
69f04e6893 check android jar's against SDK level 26 by compiling to dex with d8 2020-05-08 23:21:06 +02:00
Robert Stoll
b7f844e601 build windows also against JDK 11 2020-04-26 22:18:51 +02:00
Robert Stoll
3446ad7673 update wrapper-validation-action to 1.0.3 2020-04-26 00:52:42 +02:00
Robert Stoll
1ad42ea5a6 build sample projects individually
This way we would have realised that gradle wrapper are missing for
jasmine and mocha, permissions are not set etc.
Those errors are not detected in the composite build.
2020-04-25 22:53:44 +02:00
Robert Stoll
1c7b7585a8 don't fail CI if coverage upload fails 2020-04-25 22:41:46 +02:00
assaflei
051fb054e8 composite build, make mocha/jasmine independent 2020-04-25 21:45:52 +03:00