Skip to content

Commit

Permalink
Adding sqlite3 transpile to all travis jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Jul 30, 2017
1 parent edc50cb commit 369e9b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ matrix:
os: linux
- env: SCRIPT=lint CLANG=3.9
os: linux
- env: SCRIPT=sqlite3 CLANG=3.9
os: osx

before_install:
- |
Expand Down
16 changes: 0 additions & 16 deletions travis/sqlite3.sh

This file was deleted.

12 changes: 12 additions & 0 deletions travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ echo "47" | go run prime.go
if [ $($C2GO -v | wc -l) -ne 1 ]; then exit 1; fi
if [ $(cat prime.go | wc -l) -eq 0 ]; then exit 1; fi
if [ $($C2GO ast $C2GO_DIR/examples/prime.c | wc -l) -eq 0 ]; then exit 1; fi

# This will have to be updated every so often to the latest version. You can
# find the latest version here: https://sqlite.org/download.html
export SQLITE3_FILE=sqlite-amalgamation-3190300

# Download Sqlite3 amalgamated source.
curl https://sqlite.org/2017/$SQLITE3_FILE.zip > /tmp/$SQLITE3_FILE.zip
unzip /tmp/$SQLITE3_FILE.zip -d /tmp

# Transpile the SQLite3 files.
./c2go transpile /tmp/sqlite-amalgamation-3190300/shell.c
./c2go transpile /tmp/sqlite-amalgamation-3190300/sqlite3.c

0 comments on commit 369e9b2

Please sign in to comment.