File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ stages :
2+ - test
3+ - build image
4+
5+ variables :
6+ DOCKER_TLS_CERTDIR : " "
7+ DOCKER_HOST : tcp://localhost:2375
8+ DOCKER_DRIVER : overlay2
9+ MYSQL_ROOT_PASSWORD : " root"
10+ MYSQL_DATABASE : " ota_treehub"
11+ MYSQL_USER : " treehub"
12+ MYSQL_PASSWORD : " treehub"
13+ SBT_OPTS : " -sbt-launch-dir .sbt/launchers -sbt-dir .sbt -ivy .ivy2 -Dsbt.color=true -Dscala.color=true"
14+ ARTIFACTORY_USERNAME : cicd-innovation
15+ ARTIFACTORY_URL : https://artifactory-horw.int.toradex.com/artifactory
16+
17+ image : artifactory-horw.int.toradex.com/ota-docker-dev-horw/tdx-inno-ci-scala:0.0.1
18+
19+ services :
20+ - name : docker:dind
21+ - name : mariadb:10.4
22+ alias : db
23+ command :
24+ - --character-set-server=utf8
25+ - --collation-server=utf8_unicode_ci
26+ - --max_connections=1000
27+
28+ default :
29+ cache :
30+ key : treehub
31+ when : always
32+ paths :
33+ - .ivy2/
34+ - .sbt/
35+
36+ test :
37+ stage : test
38+ variables :
39+ DB_URL : " jdbc:mariadb://db:3306/ota_treehub"
40+ before_script :
41+ - echo "GRANT ALL PRIVILEGES ON \`ota\_treehub%\`.* TO 'treehub'@'%'; FLUSH PRIVILEGES;" > db_user.sql
42+ - until mysqladmin ping --protocol=TCP -h db -P 3306 -u root -proot; do echo waiting for mysql; sleep 1; done
43+ - mysql -v -h db -u root -proot < db_user.sql
44+ script :
45+ - sbt -J-Xmx1G -J-XX:MaxPermSize=256m -J-XX:ReservedCodeCacheSize=128m ut:test
46+
47+ include :
48+ - project : rd/innovation/continuous-delivery/ci-container-build
49+ file : gitlab-ci-templates/jfrog-sbt-docker-publish.yaml
50+
51+ build docker image :
52+ stage : build image
53+ only :
54+ - master
55+ extends : .jfrog-sbt-docker-publish
56+ variables :
57+ ARTIFACTORY_REPO : ota-docker-dev-horw
58+ SERVICE_NAME : treehub
59+
You can’t perform that action at this time.
0 commit comments