Skip to content

Commit

Permalink
Check all files in travis.ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
anfelor committed Apr 15, 2018
1 parent d8ef91d commit 237c361
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.agdai
index.agda
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ services:
before_install:
- docker pull scottfleischman/agda:2.5.2

env:
- AGDA_FILE="src/API/Theorems.agda"

script:
- docker run -v $TRAVIS_BUILD_DIR:/opt/agda-build scottfleischman/agda:2.5.2 /bin/sh -c 'cd /opt/agda-build; agda '$AGDA_FILE
- docker run -v $TRAVIS_BUILD_DIR:/opt/agda-build scottfleischman/agda:2.5.2 /bin/sh -c 'cd /opt/agda-build; ./index.sh; agda -i . -i src/ index.agda'
5 changes: 5 additions & 0 deletions index.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rm -rf index.agda;
echo "module index where" >> index.agda;
for i in $( find src -name "*.agda" | sed 's/src\/\(.*\)\.agda/\1/' | sed 's/\//\./g' | sort ); do
echo "import $i" >> index.agda;
done

0 comments on commit 237c361

Please sign in to comment.