mirror of
https://github.com/ilyakooo0/servant-reflex.git
synced 2024-09-11 07:15:29 +03:00
Build testserver w/ reflex platform and start servers early
This commit is contained in:
parent
9a8a6aa1a3
commit
28d0c33328
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -16,3 +16,6 @@
|
||||
[submodule "deps/http-api-data"]
|
||||
path = deps/http-api-data
|
||||
url = https://github.com/fizruk/http-api-data
|
||||
[submodule "deps/servant"]
|
||||
path = deps/servant
|
||||
url = https://github.com/haskell-servant/servant
|
||||
|
22
.travis.yml
22
.travis.yml
@ -23,6 +23,7 @@ before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_3c89d919c82e_key -iv $encrypted_3c89d919c82e_iv -in deploy_key.enc -out deploy_key -d
|
||||
- unset CC
|
||||
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
||||
- git submodule update --init --recursive
|
||||
|
||||
install:
|
||||
- cabal --version
|
||||
@ -36,19 +37,18 @@ install:
|
||||
fi
|
||||
- travis_retry cabal update -v
|
||||
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
||||
- deps/reflex-platform/work-on ./overrides-ghc.nix ./testserver --command "cd testserver && cabal configure && cabal build"
|
||||
- cd testserver && dist/build/back/back -p 8000 &
|
||||
- sleep 3
|
||||
- phantomjs --webdriver=127.0.0.1:4444 &
|
||||
- sleep 3
|
||||
|
||||
script:
|
||||
- git config --global user.email "travis-ci@example.com"
|
||||
- git config --global user.name "Travis-CI"
|
||||
- git submodule update --init --recursive
|
||||
- ./build.sh
|
||||
- deps/reflex-platform/work-on ./overrides-ghc.nix ./. --command "cabal configure --enable-tests && cabal build"
|
||||
- bash ./deploy.sh
|
||||
- ./init-sandbox.sh
|
||||
- cd testserver
|
||||
- cabal install --only-dep
|
||||
- cabal build
|
||||
- run-wd-tests.sh
|
||||
- git config --global user.email "travis-ci@example.com"
|
||||
- git config --global user.name "Travis-CI"
|
||||
- ./build.sh
|
||||
- deps/reflex-platform/work-on ./overrides-ghc.nix ./. --command "cabal configure --enable-tests && cabal build"
|
||||
- dist/build/spec/spec
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
2
build.sh
2
build.sh
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
deps/reflex-platform/work-on ./overrides.nix ./. --run "cabal configure --ghcjs && cabal build"
|
||||
deps/reflex-platform/work-on ./overrides.nix ./. --run "cabal configure --ghcjs && cabal build && ./toSite.sh"
|
||||
|
1
deps/servant
vendored
Submodule
1
deps/servant
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 2a21e14e6e4ec01a7eed2f0c617162adaa803ab7
|
@ -2,8 +2,19 @@
|
||||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
reflex-platform = import deps/reflex-platform {};
|
||||
c2n = reflex-platform.cabal2nixResult;
|
||||
in reflex-platform.ghc.override {
|
||||
overrides = self: super: {
|
||||
reflex-dom = pkgs.haskell.lib.dontCheck (self.callPackage deps/reflex-dom {});
|
||||
reflex-dom = pkgs.haskell.lib.dontCheck (self.callPackage deps/reflex-dom {});
|
||||
servant-snap = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap) {});
|
||||
snap = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap) {});
|
||||
snap-server = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap/deps/snap-server) {});
|
||||
io-streams = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap/deps/io-streams) {});
|
||||
io-streams-haproxy = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap/deps/io-streams-haproxy) {});
|
||||
heist = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap/deps/heist) {});
|
||||
xmlhtml = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap/deps/xmlhtml) {});
|
||||
snap-core = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant-snap/deps/snap/deps/snap-core) {});
|
||||
servant = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/servant/servant) {});
|
||||
http-api-data = pkgs.haskell.lib.dontCheck (self.callPackage (c2n deps/http-api-data) {});
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user