Skip to content

Commit

Permalink
Merge pull request #518 from AmpersandTarski/development
Browse files Browse the repository at this point in the history
Release 3.7.0
  • Loading branch information
hanjoosten authored Sep 2, 2016
2 parents 356a498 + bf692ac commit 717d4c8
Show file tree
Hide file tree
Showing 180 changed files with 2,573 additions and 7,247 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ install:
cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0;;
esac

before_script: composer install

script:
- case "$BUILD" in
stack)
Expand Down
8 changes: 8 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release notes of Ampersand

## v3.7.0 (2 september 2016)
* [Issue #506](https://github.com/AmpersandTarski/Ampersand/issues/506) Bugfix in chapter diagnosis of Func. spec.
* [Issue #483](https://github.com/AmpersandTarski/Ampersand/issues/483) Introduction of proper way to produce exit codes of Ampersand
* [Issue #502](https://github.com/AmpersandTarski/Ampersand/issues/502) More stable way to generate .pdf file (LaTeX output)
* [Issue #72](https://github.com/AmpersandTarski/Ampersand/issues/72) Symmetry of relations will be checked by a generated application
* [Issue #256](https://github.com/AmpersandTarski/Ampersand/issues/256) Surjectivity of relations will be checked by a generated application
* [Issue #345](https://github.com/AmpersandTarski/Ampersand/issues/345) Surjectivity of relations will be checked by a generated application

## v3.6.1 (5 august 2016)
* [Issue #488](https://github.com/AmpersandTarski/Ampersand/issues/488) Performance enhancement: Added indexes on table columns when possible
* [Issue #486](https://github.com/AmpersandTarski/Ampersand/issues/486) Performance enhancement: Removed DISTINCT in subqueries
Expand Down
4 changes: 2 additions & 2 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ generateBuildInfoHook pd lbi uh bf =
}

buildInfoModuleName :: String
buildInfoModuleName = "Database.Design.Ampersand.Basics.BuildInfo_Generated"
buildInfoModuleName = "Ampersand.Basics.BuildInfo_Generated"

buildInfoModule :: String -> String -> String -> String
buildInfoModule cabalVersion gitInfo time = unlines
Expand Down Expand Up @@ -118,7 +118,7 @@ warnNoCommitInfo =
-}

staticFileModuleName :: String
staticFileModuleName = "Database.Design.Ampersand.Prototype.StaticFiles_Generated"
staticFileModuleName = "Ampersand.Prototype.StaticFiles_Generated"

generateStaticFileModule :: IO ()
generateStaticFileModule =
Expand Down
48 changes: 0 additions & 48 deletions Test bestanden/SelectExprTest.adl

This file was deleted.

414 changes: 157 additions & 257 deletions ampersand.cabal

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions app/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module Main where

import Data.List
import Prelude hiding (putStr)
import Ampersand

main :: IO ()
main =
do opts <- getOptions
if showVersion opts || showHelp opts
then mapM_ putStr (helpNVersionTexts ampersandVersionStr opts)
else do gFSpec <- createFSpec opts
case gFSpec of
Errors err -> exitWith . NoValidFSpec . intersperse (replicate 30 '=') . map showErr $ err
Checked fSpec -> generateAmpersandOutput fSpec


7 changes: 1 addition & 6 deletions src/RegressionTest.hs → app/RegressionTest.hs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
module Main (main) where

import Conduit
--import qualified Data.Conduit.List as CL
--import qualified Data.Conduit.Binary as CB

import System.FilePath ((</>))
import Control.Monad --(filterM, forM_, foldM,when)
import System.IO.Error (tryIOError)
import System.Directory (getDirectoryContents, doesFileExist, doesDirectoryExist)
--import Control.Monad.Trans.Class (lift)
--import Data.Conduit
import System.Exit --(ExitCode, exitFailure, exitSuccess)
import Database.Design.Ampersand.Test.Regression
import Ampersand.Test.Regression(DirContent(..),DirData(..),process)

main :: IO ExitCode
main = do
Expand Down
14 changes: 8 additions & 6 deletions src/Test.hs → app/Test.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module Main (main) where

import Database.Design.Ampersand.Misc.Options(getOptions,Options)
import Database.Design.Ampersand.Test.TestScripts (getTestScripts,testAmpersandScripts)
import Database.Design.Ampersand.Test.Parser.ParserTest (parseScripts)
import Database.Design.Ampersand.Test.Parser.QuickChecks (parserQuickChecks)
--import Ampersand.Misc.Options(getOptions,Options)
--import Ampersand.Test.TestScripts (getTestScripts,testAmpersandScripts)
--import Ampersand.Test.Parser.ParserTest (parseScripts)
--import Ampersand.Test.Parser.QuickChecks (parserQuickChecks)
import System.Exit (ExitCode, exitFailure, exitSuccess)
import Ampersand
import Prelude hiding (putStrLn)

testFunctions :: Options -> IO [([String], IO Bool)]
testFunctions opts =
Expand All @@ -28,9 +30,9 @@ main = do opts <- getOptions
tests funcs
where tests :: [([String], IO Bool)] -> IO ExitCode
tests [] = exitSuccess
tests ((msg,test):xs) =
tests ((msg,tst):xs) =
do mapM_ putStrLn msg
success <- test
success <- tst
if success then tests xs
else do putStrLn "*** Something went wrong here***"
exitFailure
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ artifacts:
# Auto-deploy
# specify that, for each build that completes, AppVeyor should push
# a release with the right tag to the GitHub releases page!
# We only release when the branch == master.
# (Note: probably we would want to be a bit more
# elaborate about when we push to the releases page; making sure
# that we include proper release notes, etc.)
Expand All @@ -56,6 +57,7 @@ deploy:
auth_token:
secure: B9wxH2Me3jIbEn9xlvIY9SEWdELRgKMtEZeQZmJQm5wMGjp4YF4wQmAHCy3ofTJG
artifact: Windows binary

on:
branch: master


5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"autoload": {
"psr-4": { "": "src/" }
}
}
Loading

0 comments on commit 717d4c8

Please sign in to comment.