Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lierdakil
GHC
Commits
a6797641
Unverified
Commit
a6797641
authored
7 years ago
by
Andrey Mokhov
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix CI scripts (#454)
See #453
parent
06ec241e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+3
-1
3 additions, 1 deletion
.travis.yml
appveyor.yml
+13
-11
13 additions, 11 deletions
appveyor.yml
circle.yml
+2
-1
2 additions, 1 deletion
circle.yml
with
18 additions
and
13 deletions
.travis.yml
+
3
−
1
View file @
a6797641
...
...
@@ -76,10 +76,12 @@ install:
-
cabal update
-
cabal install alex happy
# GHC comes with an older version of Hadrian, so we delete it
-
rm -r ghc/hadrian/*
# Travis has already cloned Hadrian into ./ and we need to move it
# to ./ghc/hadrian -- one way to do it is to move the .git directory
# and perform a hard reset in order to regenerate Hadrian files
-
mkdir ghc/hadrian
-
mv .git ghc/hadrian
-
cd ghc/hadrian
-
git reset --hard HEAD
...
...
This diff is collapsed.
Click to expand it.
appveyor.yml
+
13
−
11
View file @
a6797641
clone_folder
:
"
c:
\\
ghc
\\
hadrian"
clone_folder
:
"
c:
\\
new-
hadrian"
environment
:
global
:
STACK_ROOT
:
"
c:
\\
sr"
...
...
@@ -11,24 +11,26 @@ install:
-
curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
-
7z x stack.zip stack.exe
# Note: AppVeyor has already cloned Hadrian into c:\new-hadrian
# Fetch GHC sources into c:\ghc
# Note: AppVeyor has already cloned Hadrian into c:\ghc\hadrian, so it's tricky
-
cd ..
-
git init
-
git remote add origin git://git.haskell.org/ghc.git
-
git pull --recurse-submodules origin master
-
git submodule update --init --recursive --quiet
-
git clone --recursive git://git.haskell.org/ghc.git
# GHC comes with an older version of Hadrian, so we delete it
-
rm -rf ghc\hadrian
# Move new Hadrian into ./ghc/hadrian
-
mv new-hadrian ghc\hadrian
# Install Alex and Happy
-
set PATH=C:\Users\appveyor\AppData\Roaming\local\bin;%PATH%
-
ghc\hadrian\stack install --install-ghc alex happy > nul
# Install all Hadrian and GHC build dependencies
-
cd hadrian
-
cd
ghc\
hadrian
-
stack setup > nul
-
appveyor-retry stack exec -- pacman -S autoconf automake-wrapper make patch python tar --noconfirm
build_script
:
# Build Hadrian
-
stack build alex happy
# Otherwise 'build' fails on AppVeyor
# Run internal Hadrian tests
# Build Hadrian and run internal Hadrian tests
-
build selftest
# Build GHC
...
...
This diff is collapsed.
Click to expand it.
circle.yml
+
2
−
1
View file @
a6797641
...
...
@@ -21,7 +21,8 @@ compile:
-
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
-
git clone --depth 1 --recursive git://github.com/ghc/ghc
-
mkdir ghc/hadrian
# GHC comes with an older version of Hadrian, so we delete it
-
rm -r ghc/hadrian/*
# move hadrian's .git into ./ghc/hadrian and perform a hard reset in order to regenerate Hadrian files
-
mv .git ghc/hadrian
# NOTE: we must write them in the same line because each line
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment