forked from karatelabs/karate
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #3 from intuit/develop
Develop
- Loading branch information
Showing
788 changed files
with
25,824 additions
and
23,097 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,29 @@ | ||
name: maven-build | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v2 | ||
- name: set up jdk 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: cache maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: build with maven | ||
run: mvn -B clean install -P pre-release -Djavacpp.platform=linux-x86_64 | ||
- name: build and test with docker | ||
run: ./build-docker.sh |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -x -e | ||
|
||
# assume that karate jars are installed in maven local repo | ||
# mvn clean install -P pre-release -DskipTests | ||
|
||
# copy only karate jars to a place where the docker image build can add from | ||
KARATE_REPO=karate-docker/karate-chrome/target/repository/com/intuit | ||
mkdir -p ${KARATE_REPO} | ||
cp -r ~/.m2/repository/com/intuit/karate ${KARATE_REPO} | ||
|
||
# create / copy the karate fatjar so that the docker image build can add it | ||
mvn -f karate-core/pom.xml package -P fatjar -DskipTests | ||
KARATE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
cp karate-core/target/karate-${KARATE_VERSION}.jar karate-docker/karate-chrome/target/karate.jar | ||
|
||
# build karate-chrome docker image that includes karate fatjar + maven jars for convenience | ||
docker build -t karate-chrome karate-docker/karate-chrome | ||
|
||
# just in case a previous run had hung (likely only in local dev) | ||
docker stop karate || true | ||
|
||
# note that this command is run as a background process | ||
docker run --name karate --rm --cap-add=SYS_ADMIN -v "$PWD":/karate -v "$HOME"/.m2:/root/.m2 karate-chrome & | ||
|
||
# just ensure that the docker container named "karate" exists after the above command | ||
# it does not have to have completed startup, the command / karate test below will wait | ||
sleep 5 | ||
|
||
# run tests against chrome | ||
docker exec -w /karate karate mvn test -f karate-e2e-tests/pom.xml -Dtest=driver.DockerRunner | ||
docker stop karate | ||
wait |
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
10 changes: 1 addition & 9 deletions
10
examples/jobserver/src/test/java/jobtest/simple/simple1.feature
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 |
---|---|---|
@@ -1,15 +1,7 @@ | ||
Feature: simple 1 | ||
|
||
Background: | ||
* configure responseDelay = 1000 | ||
* print 'in background 1' | ||
|
||
Scenario: 1-one | ||
* print '1-one' | ||
* def karateTest = java.lang.System.getenv('KARATE_TEST') | ||
* print '*** KARATE_TEST: ', karateTest | ||
|
||
Scenario: 1-two | ||
* print '1-two' | ||
|
||
Scenario: 1-three | ||
* print '1-three' |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.