From 71f17986dba95624c02144f6435955b55654d5df Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 6 Jan 2020 18:04:12 -0500 Subject: [PATCH] build settings --- .teamcity/settings.kts | 69 ++++++++++++++++++++++++++++++++++++++ README.md | 8 ++--- ci/build.sh | 4 +-- scripts/get_static_libs.sh | 2 +- 4 files changed, 75 insertions(+), 8 deletions(-) create mode 100644 .teamcity/settings.kts diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts new file mode 100644 index 0000000..4aaae40 --- /dev/null +++ b/.teamcity/settings.kts @@ -0,0 +1,69 @@ +import jetbrains.buildServer.configs.kotlin.v2019_2.* +import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.ExecBuildStep +import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.exec +import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs +import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot + +/* +The settings script is an entry point for defining a TeamCity +project hierarchy. The script should contain a single call to the +project() function with a Project instance or an init function as +an argument. + +VcsRoots, BuildTypes, Templates, and subprojects can be +registered inside the project using the vcsRoot(), buildType(), +template(), and subProject() methods respectively. + +To debug settings scripts in command-line, run the + + mvnDebug org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate + +command and attach your debugger to the port 8000. + +To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View +-> Tool Windows -> Maven Projects), find the generate task node +(Plugins -> teamcity-configs -> teamcity-configs:generate), the +'Debug' option is available in the context menu for the task. +*/ + +version = "2019.2" + +project { + + vcsRoot(HttpsGithubComSimon987sist2refsHeadsMaster) + + buildType(Build) +} + +object Build : BuildType({ + name = "Build" + + artifactRules = """ + sist2 + sist2_scan + """.trimIndent() + + vcs { + root(HttpsGithubComSimon987sist2refsHeadsMaster) + } + + steps { + exec { + name = "Build" + path = "./ci/build.sh" + dockerImage = "simon987/general_ci" + dockerImagePlatform = ExecBuildStep.ImagePlatform.Linux + dockerPull = true + } + } + + triggers { + vcs { + } + } +}) + +object HttpsGithubComSimon987sist2refsHeadsMaster : GitVcsRoot({ + name = "https://github.com/simon987/sist2#refs/heads/master" + url = "https://github.com/simon987/sist2" +}) diff --git a/README.md b/README.md index e3d9efd..ed6b20b 100644 --- a/README.md +++ b/README.md @@ -121,10 +121,10 @@ binaries. *(Debian)* ```bash - apt install git cmake pkg-config libglib2.0-dev\ - libssl-dev uuid-dev libavformat-dev libswscale-dev \ - python3 libmagic-dev libfreetype6-dev libcurl-dev \ - libbz2-dev yasm libharfbuzz-dev ragel libarchive-dev + apt install git cmake pkg-config libglib2.0-dev \ + libssl-dev uuid-dev python3 libmagic-dev libfreetype6-dev \ + libcurl-dev libbz2-dev yasm libharfbuzz-dev ragel \ + libarchive-dev ``` *(FreeBSD)* ```bash diff --git a/ci/build.sh b/ci/build.sh index b6d89aa..cecbdc2 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash -git clone --recursive https://github.com/simon987/sist2 -cd sist2 -./scripts/get_static_libs.sh 1 +./scripts/get_static_libs.sh cmake . make \ No newline at end of file diff --git a/scripts/get_static_libs.sh b/scripts/get_static_libs.sh index c0c9834..75f9f16 100755 --- a/scripts/get_static_libs.sh +++ b/scripts/get_static_libs.sh @@ -5,7 +5,7 @@ THREADS=$(nproc) cd lib cd mupdf -USE_SYSTEM_HARFBUZZ=yes USE_SYSTEM_OPENJPEG=yes HAVE_X11=no HAVE_GLUT=no make -j 4 +make USE_SYSTEM_HARFBUZZ=yes USE_SYSTEM_OPENJPEG=yes HAVE_X11=no HAVE_GLUT=no -j $THREADS cd .. mv mupdf/build/release/libmupdf.a .