Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
Glasgow Haskell Compiler
Packages
Cabal
Commits
16ed0bda
Commit
16ed0bda
authored
7 years ago
by
Edward Z. Yang
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4634 from ezyang/pr/travis-2.0
Upgrade to 2.0 branch.
parents
4942b1f5
f3ade3fe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
travis-common.sh
+10
-4
10 additions, 4 deletions
travis-common.sh
travis-install.sh
+3
-4
3 additions, 4 deletions
travis-install.sh
travis/upload.sh
+3
-3
3 additions, 3 deletions
travis/upload.sh
with
17 additions
and
12 deletions
.travis.yml
+
1
−
1
View file @
16ed0bda
...
...
@@ -105,7 +105,7 @@ before_install:
-
export PATH=$HOME/bin:$PATH
-
export PATH=$HOME/.cabal/bin:$PATH
-
export PATH=$HOME/.local/bin:$PATH
-
export PATH=/opt/cabal/
1.24
/bin:$PATH
-
export PATH=/opt/cabal/
2.0
/bin:$PATH
-
export PATH=/opt/happy/1.19.5/bin:$PATH
-
export PATH=/opt/alex/3.1.7/bin:$PATH
-
if [ "$USE_GOLD" = "YES" ]; then sudo update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20; fi
...
...
This diff is collapsed.
Click to expand it.
travis-common.sh
+
10
−
4
View file @
16ed0bda
...
...
@@ -3,13 +3,19 @@ set -e
HACKAGE_REPO_TOOL_VERSION
=
"0.1.1"
CABAL_VERSION
=
"2.1.0.0"
if
[
"
$TRAVIS_OS_NAME
"
=
"linux"
]
;
then
ARCH
=
"x86_64-linux"
else
ARCH
=
"x86_64-osx"
fi
CABAL_STORE_DB
=
"
${
HOME
}
/.cabal/store/ghc-
${
GHCVER
}
/package.db"
CABAL_LOCAL_DB
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/packagedb/ghc-
${
GHCVER
}
"
CABAL_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/Cabal-
${
CABAL_VERSION
}
"
CABAL_TESTSUITE_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/cabal-testsuite-
${
CABAL_VERSION
}
"
CABAL_INSTALL_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/cabal-install-
${
CABAL_VERSION
}
"
CABAL_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/
$ARCH
/ghc-
$GHCVER
/
Cabal-
${
CABAL_VERSION
}
"
CABAL_TESTSUITE_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/
$ARCH
/ghc-
$GHCVER
/
cabal-testsuite-
${
CABAL_VERSION
}
"
CABAL_INSTALL_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/
$ARCH
/ghc-
$GHCVER
/
cabal-install-
${
CABAL_VERSION
}
"
CABAL_INSTALL_SETUP
=
"
${
CABAL_INSTALL_BDIR
}
/setup/setup"
HACKAGE_REPO_TOOL_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/hackage-repo-tool-
${
HACKAGE_REPO_TOOL_VERSION
}
"
HACKAGE_REPO_TOOL_BDIR
=
"
${
TRAVIS_BUILD_DIR
}
/dist-newstyle/build/
$ARCH
/ghc-
$GHCVER
/
hackage-repo-tool-
${
HACKAGE_REPO_TOOL_VERSION
}
/c/hackage-repo-tool
"
# ---------------------------------------------------------------------
# Timing / diagnostic output
...
...
This diff is collapsed.
Click to expand it.
travis-install.sh
+
3
−
4
View file @
16ed0bda
...
...
@@ -13,7 +13,7 @@ if [ -z ${STACKAGE_RESOLVER+x} ]; then
if
[
"
$TRAVIS_OS_NAME
"
=
"linux"
]
;
then
travis_retry
sudo
add-apt-repository
-y
ppa:hvr/ghc
travis_retry
sudo
apt-get update
travis_retry
sudo
apt-get
install
--force-yes
cabal-install-
1.24
happy-1.19.5 alex-3.1.7 ghc-
$GHCVER
-prof
ghc-
$GHCVER
-dyn
travis_retry
sudo
apt-get
install
--force-yes
cabal-install-
2.0
happy-1.19.5 alex-3.1.7 ghc-
$GHCVER
-prof
ghc-
$GHCVER
-dyn
if
[
"x
$TEST_OTHER_VERSIONS
"
=
"xYES"
]
;
then
travis_retry
sudo
apt-get
install
--force-yes
ghc-7.0.4-prof ghc-7.0.4-dyn ghc-7.2.2-prof ghc-7.2.2-dyn ghc-head-prof ghc-head-dyn
;
fi
elif
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
...
...
@@ -59,10 +59,9 @@ if [ -z ${STACKAGE_RESOLVER+x} ]; then
make
install
;
cd
..
;
travis_retry curl
-L
https://www.haskell.org/cabal/release/cabal-install-1.24.0.2/cabal-install-1.24.0.2-x86_64-apple-darwin-yosemite.tar.gz
-o
cabal-install.tar.gz
TAR
=
$PWD
/cabal-install.tar.gz
mkdir
"
${
HOME
}
/bin"
(
cd
"
${
HOME
}
/bin"
&&
tar
-xzf
"
$TAR
"
)
travis_retry curl
-L
http://web.mit.edu/~ezyang/Public/cabal-install-2.0.0.0-osx.gz |
gunzip
-c
>
"
${
HOME
}
/bin/cabal"
chmod
a+x
"
${
HOME
}
/bin/cabal"
"
${
HOME
}
/bin/cabal"
--version
else
...
...
This diff is collapsed.
Click to expand it.
travis/upload.sh
+
3
−
3
View file @
16ed0bda
...
...
@@ -70,10 +70,10 @@ cp $TRAVIS_BUILD_DIR/travis/id_rsa .
cp
$TRAVIS_BUILD_DIR
/travis-install.sh
.
cp
$TRAVIS_BUILD_DIR
/travis-common.sh
.
# The binaries to test (statically linked, of course!)
cp
${
CABAL_BDIR
}
/build/unit-tests/unit-tests Cabal
cp
${
CABAL_BDIR
}
/
c/unit-tests/
build/unit-tests/unit-tests Cabal
if
[
"x
$PARSEC
"
=
"xYES"
]
;
then
cp
${
CABAL_BDIR
}
/build/parser-tests/parser-tests Cabal
cp
${
CABAL_BDIR
}
/build/parser-hackage-tests/parser-hackage-tests Cabal
cp
${
CABAL_BDIR
}
/
c/parser-tests/
build/parser-tests/parser-tests Cabal
cp
${
CABAL_BDIR
}
/
c/parser-hackage-tests/
build/parser-hackage-tests/parser-hackage-tests Cabal
fi
if
[
"x
$CABAL_LIB_ONLY
"
!=
"xYES"
]
;
then
cp
${
CABAL_INSTALL_BDIR
}
/build/cabal/cabal cabal-install
...
...
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