Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
toki
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
toki
Commits
319c05e1
Commit
319c05e1
authored
4 years ago
by
Mateusz Gniewkowski
Browse files
Options
Downloads
Patches
Plain Diff
Deb
parent
81917369
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+35
-0
35 additions, 0 deletions
.gitlab-ci.yml
CMakeLists.txt
+23
-1
23 additions, 1 deletion
CMakeLists.txt
libtoki/CMakeLists.txt
+1
-0
1 addition, 0 deletions
libtoki/CMakeLists.txt
with
59 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
35
−
0
View file @
319c05e1
image
:
clarinpl/cpp
stages
:
-
build
-
deploy
build_deb
:
stage
:
build
only
:
-
master
-
deb
script
:
-
apt-get install -y apt-transport-https
-
bash -c "wget -q -O - http://apt.clarin-pl.eu/KEY.gpg | apt-key add -"
-
bash -c "echo 'deb https://apt.clarin-pl.eu/ /' > /etc/apt/sources.list.d/clarin.list"
-
apt-get update && apt-get install -y
corpus2-python3.6
-
mkdir build && cd build
-
cmake .. && cmake --build . && cpack
artifacts
:
paths
:
-
build/toki*.deb
expire_in
:
1h
push_deb
:
stage
:
deploy
only
:
-
master
-
deb
script
:
-
FILE=$(ls build/toki*.deb)
-
curl --fail -i -X POST -F "file=@./${FILE}" -u "${APT_USERNAME}:${APT_PASSWORD}" https://apt.clarin-pl.eu/
dependencies
:
-
build_deb
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
23
−
1
View file @
319c05e1
PROJECT
(
T
ok
enizer
)
PROJECT
(
t
ok
i
)
cmake_minimum_required
(
VERSION 2.6.0
)
set
(
toki_ver_major
"1"
)
set
(
toki_ver_minor
"0"
)
set
(
toki_ver_patch
"0"
)
set
(
TOKI_VERSION
"
${
toki_ver_major
}
.
${
toki_ver_minor
}
.
${
toki_ver_patch
}
"
)
SET
(
CMAKE_INSTALL_PREFIX,
"/usr"
)
# use some of our own Find* scripts
set
(
CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/CMakeScripts
)
...
...
@@ -48,3 +56,17 @@ if(UNIX)
add_subdirectory
(
tests
)
endif
(
UNIX
)
add_subdirectory
(
toki-app
)
# Requires to install dependencies
set
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"libboost-all-dev, libicu-dev, corpus2-python3.6, libloki-dev"
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
""
)
# Set *.deb package name and version
SET
(
CPACK_PACKAGE_VERSION
"
${
TOKI_VERSION
}
"
)
SET
(
CPACK_GENERATOR
"DEB"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"g419"
)
set
(
CPACK_SYSTEM_NAME
"all"
)
set
(
CPACK_TOPLEVEL_TAG
"all"
)
INCLUDE
(
CPack
)
This diff is collapsed.
Click to expand it.
libtoki/CMakeLists.txt
+
1
−
0
View file @
319c05e1
...
...
@@ -35,6 +35,7 @@ include_directories(${Boost_INCLUDE_DIR})
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
set
(
LIBS
${
LIBS
}
${
Boost_LIBRARIES
}
)
set
(
CMAKE_INSTALL_PREFIX /usr
)
set
(
LIBTOKI_INSTALL_DATA_DIR share/toki
)
set
(
LIBTOKI_PATH_SEPARATOR
";"
)
set
(
LIBTOKI_DATA_DIR
".;
${
CMAKE_INSTALL_PREFIX
}
/
${
LIBTOKI_INSTALL_DATA_DIR
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment