forked from bakwc/JamSpell
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (39 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
sudo: require
dist: trusty
language: cpp
compiler: gcc
before_install:
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- gcc --version
- g++ --version
- sudo rm -rf /var/lib/apt/lists/partial/*
- sudo apt -o Acquire::https::No-Cache=True -o Acquire::http::No-Cache=True update
- sudo apt-get install -y cmake
- sudo apt-get install -y libgtest-dev
- sudo apt-get install -y python2.7 python-pip
- sudo python2.7 -m pip install pytest scipy
- sudo apt-get install swig3.0
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- cd -
before_script:
- mkdir build
- cd build
- cmake ..
- make
- ls -l
- cd ..
- sudo python2.7 setup.py install
script:
- ./build/tests/jamspell_tests
- python2.7 -m pytest -v test_jamspell.py
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5