Skip to content

Commit

Permalink
Add configuration files and scripts for travis
Browse files Browse the repository at this point in the history
Change-Id: I488eaf929e6b1194e0219f42e005effce92b0458
Reviewed-on: http://gerrit.aldebaran.lan/63914
Tested-by: gerrit
Reviewed-by: vbarbaresi <[email protected]>
  • Loading branch information
dmerejkowsky committed Oct 22, 2015
1 parent 4288ca6 commit c5470ba
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
sudo: required
dist: trusty

language: python

python:
- "2.7"

addons:
apt:
packages:
- doxygen
- cmake
- gdb

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y ninja-build swig python-enchant

install:
- pip install -r requirements.txt

script:
# Make sure ssh user@localhost works (for qibuild deploy tests)
- bash -xe ci/setup-ssh.sh
- bash -xe ci/setup-git.sh
- make -C python
2 changes: 2 additions & 0 deletions ci/setup-git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
5 changes: 5 additions & 0 deletions ci/setup-ssh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Making sure ssh user@localhost works
mkdir -p ~/.ssh
ssh-keyscan -t rsa,dsa localhost >> ~/.ssh/known_hosts
echo -e "\n\n\n" | ssh-keygen -t rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

0 comments on commit c5470ba

Please sign in to comment.