Build submodules in Travis CI
This commit is contained in:
parent
a2e1554aae
commit
ea4a78054b
4 changed files with 38 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,7 +16,6 @@ Makefile
|
|||
## Specific to RubyMotion:
|
||||
.dat*
|
||||
.repl_history
|
||||
build/
|
||||
|
||||
## Documentation cache and generated files:
|
||||
/.yardoc/
|
||||
|
|
21
.travis.yml
21
.travis.yml
|
@ -4,11 +4,22 @@ rvm:
|
|||
- 2.0
|
||||
- 2.1
|
||||
- 2.2
|
||||
|
||||
script: bundle exec rake
|
||||
|
||||
before_install:
|
||||
- gem update --system
|
||||
- 2.3
|
||||
- 2.4
|
||||
|
||||
services:
|
||||
- redis-server
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y build-essential libtool autotools-dev automake checkinstall check git yasm
|
||||
|
||||
- sudo ./bin/build/libsodium
|
||||
- sudo ./bin/build/libtoxcore
|
||||
|
||||
- sudo mkdir -p '/etc/ld.so.conf.d/'
|
||||
- echo '/usr/local/lib/' | sudo tee -a '/etc/ld.so.conf.d/locallib.conf'
|
||||
- sudo ldconfig
|
||||
|
||||
before_script:
|
||||
- rake compile
|
||||
|
|
11
bin/build/libsodium
Executable file
11
bin/build/libsodium
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
set -vx
|
||||
|
||||
pushd 'vendor/libsodium'
|
||||
./autogen.sh
|
||||
./configure
|
||||
make install
|
||||
popd
|
11
bin/build/libtoxcore
Executable file
11
bin/build/libtoxcore
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
set -vx
|
||||
|
||||
pushd 'vendor/libtoxcore'
|
||||
autoreconf -i
|
||||
./configure
|
||||
make install
|
||||
popd
|
Reference in a new issue