diff --git a/.travis.yml b/.travis.yml index 220ec8648..032918e9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: - | diff --git a/travis/sqlite3.sh b/travis/sqlite3.sh deleted file mode 100644 index b58e66074..000000000 --- a/travis/sqlite3.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -e - -# 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 - -# Build c2go and transpile the SQLite3 files. -go build -./c2go transpile /tmp/sqlite-amalgamation-3190300/shell.c -./c2go transpile /tmp/sqlite-amalgamation-3190300/sqlite3.c diff --git a/travis/test.sh b/travis/test.sh index 36b9590c7..70fa2dc26 100755 --- a/travis/test.sh +++ b/travis/test.sh @@ -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