Github 测试NG和循环CI配置
我最近建立了一个selenium测试项目。现在我想在circle CI上主持它。 有人可以提供给我一步一步的详细资料与配置文件。 我已经有一个Github和circle CI帐户。我对这个集成方面还不熟悉Github 测试NG和循环CI配置,github,circleci,testng-eclipse,Github,Circleci,Testng Eclipse,我最近建立了一个selenium测试项目。现在我想在circle CI上主持它。 有人可以提供给我一步一步的详细资料与配置文件。 我已经有一个Github和circle CI帐户。我对这个集成方面还不熟悉 # # Check https://circleci.com/docs/2.0/language-java/ for more details # version: 2 jobs: build: docker: - image: circleci/openjdk:8-j
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk-stretch-browsers
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
- run: mkdir test-reports
- run:
name: Download Selenium
command: |
curl -O http://selenium-release.storage.googleapis.com/3.5/selenium-server-standalone-3.5.3.jar
- run:
name: Start Selenium
command: |
java -jar selenium-server-standalone-3.5.3.jar -log test-reports/selenium.log
background: true
- run: mvn dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
# run tests!
- run: mvn clean integration-test
- run:
name: Save test results
command: |
mkdir -p ~/testng/results/
find . -type f -regex "./test-output/testng-results.xml" -exec cp {} ~/testng/results/ \;
when: always
- store_test_results:
path: ~/testng/results/
- store_artifacts:
path: ~/testng/results/
- store_artifacts:
path: testng/results/
在互联网上进行了大量挖掘之后,我终于能够创建自己的配置文件。我疯狂地寻找着,但我不能安于现状。我白手起家。希望这对将来的人有所帮助