Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
e77fb8a6
Commit
e77fb8a6
authored
7 years ago
by
Konstantinos Sideris
Browse files
Options
Downloads
Patches
Plain Diff
Add tests on travis
parent
07405fd4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ci/linux/gtest.sh
+19
-0
19 additions, 0 deletions
.ci/linux/gtest.sh
.ci/linux/install-deps.sh
+0
-0
0 additions, 0 deletions
.ci/linux/install-deps.sh
.ci/linux/run-tests.sh
+8
-0
8 additions, 0 deletions
.ci/linux/run-tests.sh
.travis.yml
+4
-1
4 additions, 1 deletion
.travis.yml
with
31 additions
and
1 deletion
.ci/linux/gtest.sh
0 → 100755
+
19
−
0
View file @
e77fb8a6
#!/usr/bin/env bash
set
-evx
sudo
apt-get
-qq
update
sudo
apt-get
install
-y
libgtest-dev
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
tar
xf release-1.8.0.tar.gz
cd
googletest-release-1.8.0
cmake
-DBUILD_SHARED_LIBS
=
ON
.
make
sudo cp
-a
googletest/include/gtest /usr/include
sudo cp
-a
googlemock/gtest/
*
.so /usr/lib/
sudo
ldconfig
-v
|
grep
gtest
cd
$TRAVIS_BUILD_DIR
This diff is collapsed.
Click to expand it.
.ci/linux.sh
→
.ci/linux
/install-deps
.sh
+
0
−
0
View file @
e77fb8a6
File moved
This diff is collapsed.
Click to expand it.
.ci/linux/run-tests.sh
0 → 100755
+
8
−
0
View file @
e77fb8a6
#!/usr/bin/env bash
set
-evx
cmake
-DBUILD_TESTS
=
ON
-H
.
-Bbuild
-DCMAKE_BUILD_TYPE
=
Release
make
-C
build
-j2
cd
build
&&
GTEST_COLOR
=
1 ctest
--verbose
This diff is collapsed.
Click to expand it.
.travis.yml
+
4
−
1
View file @
e77fb8a6
...
...
@@ -17,12 +17,15 @@ matrix:
compiler
:
gcc
-
os
:
linux
compiler
:
clang
before_install
:
-
if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/gtest.sh; fi
install
:
-
if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5; fi
-
if [ $TRAVIS_OS_NAME == osx ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5; fi
-
if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux.sh
; fi
-
if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux
/install-deps
.sh; fi
before_script
:
-
if [ $TRAVIS_OS_NAME == linux ]; then source /opt/qt58/bin/qt58-env.sh; fi
-
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
script
:
-
make -C build -j2
-
if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/run-tests.sh; fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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