aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-09-02 00:04:25 -0400
committerGitHub <noreply@github.com>2020-09-02 00:04:25 -0400
commitec7119052342e4371b52d3d52d4fe6698b84f5a7 (patch)
tree217e3c7274e832dfd9ad61c393e769bd7f7efbcf /.circleci
parente82fc02e5a654877a821be3a21e61e099de501ed (diff)
downloadmultihome-ec7119052342e4371b52d3d52d4fe6698b84f5a7.tar.gz
Add .circleci/config.yml (#1)
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..482b103
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,47 @@
+version: 2.1
+
+jobs:
+ build:
+ machine:
+ image: ubuntu-1604:202007-01
+ steps:
+ - checkout
+ - run: cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_C_FLAGS="-DENABLE_TESTING -g" .
+ - run: make
+ - run: ./multihome -t
+ - run: sudo make install
+ - run: multihome -s
+ - run:
+ name: "Runtime test"
+ command: |
+ . ~/.multihome/init
+ . /etc/profile
+ . ~/.profile
+
+ echo "multihome location: $MULTIHOME"
+ echo "Current HOME: $HOME"
+ echo "Previous HOME: $HOME_OLD"
+ echo "Current PATH: $PATH"
+
+ echo "System account structure (/etc/skel):"
+ ls -la /etc/skel
+
+ echo "Current HOME structure:"
+ ls -la ~
+
+ echo "test file" > topdir/.multihome/skel/TESTFILE
+
+ echo "T bin/" > topdir/.multihome/transfer
+ echo "H .gitconfig" >> topdir/.multihome/transfer
+ echo "L .gemrc" >> topdir/.multihome/transfer
+
+ multihome -u
+
+ echo "Updated HOME structure:"
+ ls -la ~
+
+ test -f ~/TESTFILE
+ test -d ~/bin
+ test -f ~/.gitconfig
+ test -L ~/.gemrc
+